@redneckz/wildless-cms-uni-blocks 0.14.831 → 0.14.833

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 (709) hide show
  1. package/bin/migration-scripts/{0.14.828.js → 0.14.832.js} +3 -1
  2. package/bundle/blocks.schema.json +1 -1
  3. package/bundle/bundle.umd.js +76 -103
  4. package/bundle/bundle.umd.min.js +1 -1
  5. package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  6. package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  7. package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  8. package/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
  9. package/bundle/external/useRouter.d.ts +2 -6
  10. package/bundle/model/Fallback.d.ts +0 -1
  11. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  12. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
  13. package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  14. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  15. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
  16. package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
  17. package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  18. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
  19. package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  20. package/dist/components/Blocks.js +0 -6
  21. package/dist/components/Blocks.js.map +1 -1
  22. package/dist/components/Blocks.mobile.js +0 -4
  23. package/dist/components/Blocks.mobile.js.map +1 -1
  24. package/dist/components/GalleryLayout/GalleryLayout.js +11 -5
  25. package/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
  26. package/dist/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
  27. package/dist/components/GalleryLayout/useSortProductBlocks.js +21 -0
  28. package/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
  29. package/dist/components/Header/HeaderSecondaryMenu.js +2 -1
  30. package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  31. package/dist/components/ProductBlock/ProductBlock.js +1 -1
  32. package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  33. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +5 -5
  34. package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  35. package/dist/components/TabsLayout/TabsLayout.js +13 -12
  36. package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  37. package/dist/external/useRouter.d.ts +2 -6
  38. package/dist/external/useRouter.js +0 -3
  39. package/dist/external/useRouter.js.map +1 -1
  40. package/dist/hooks/useActiveRoute.js +1 -1
  41. package/dist/hooks/useActiveRoute.js.map +1 -1
  42. package/dist/model/Fallback.d.ts +0 -1
  43. package/dist/services/search/useSearch.js +18 -1
  44. package/dist/services/search/useSearch.js.map +1 -1
  45. package/dist/setup-fixture.js +0 -3
  46. package/dist/setup-fixture.js.map +1 -1
  47. package/lib/common.css +1 -1
  48. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  49. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
  50. package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  51. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  52. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
  53. package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
  54. package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  55. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
  56. package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  57. package/lib/components/Blocks.js +0 -6
  58. package/lib/components/Blocks.js.map +1 -1
  59. package/lib/components/Blocks.mobile.js +0 -4
  60. package/lib/components/Blocks.mobile.js.map +1 -1
  61. package/lib/components/GalleryLayout/GalleryLayout.js +11 -5
  62. package/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
  63. package/lib/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
  64. package/lib/components/GalleryLayout/useSortProductBlocks.js +18 -0
  65. package/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
  66. package/lib/components/Header/HeaderSecondaryMenu.js +2 -1
  67. package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  68. package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -2
  69. package/lib/components/ProductBlock/ProductBlock.js +1 -1
  70. package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  71. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +6 -6
  72. package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  73. package/lib/components/TabsLayout/TabsLayout.js +13 -12
  74. package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  75. package/lib/external/useRouter.d.ts +2 -6
  76. package/lib/external/useRouter.js +0 -3
  77. package/lib/external/useRouter.js.map +1 -1
  78. package/lib/hooks/useActiveRoute.js +1 -1
  79. package/lib/hooks/useActiveRoute.js.map +1 -1
  80. package/lib/model/Fallback.d.ts +0 -1
  81. package/lib/services/search/useSearch.js +18 -1
  82. package/lib/services/search/useSearch.js.map +1 -1
  83. package/lib/setup-fixture.js +0 -3
  84. package/lib/setup-fixture.js.map +1 -1
  85. package/mobile/bundle/bundle.umd.js +61 -65
  86. package/mobile/bundle/bundle.umd.min.js +1 -1
  87. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  88. package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  89. package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  90. package/mobile/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
  91. package/mobile/bundle/external/useRouter.d.ts +2 -6
  92. package/mobile/bundle/model/Fallback.d.ts +0 -1
  93. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  94. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
  95. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  96. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  97. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
  98. package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
  99. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  100. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
  101. package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  102. package/mobile/dist/components/Blocks.js +0 -4
  103. package/mobile/dist/components/Blocks.js.map +1 -1
  104. package/mobile/dist/components/GalleryLayout/GalleryLayout.js +11 -5
  105. package/mobile/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
  106. package/mobile/dist/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
  107. package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js +21 -0
  108. package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
  109. package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -1
  110. package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
  111. package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
  112. package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
  113. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +5 -5
  114. package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  115. package/mobile/dist/components/TabsLayout/TabsLayout.js +13 -12
  116. package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
  117. package/mobile/dist/external/useRouter.d.ts +2 -6
  118. package/mobile/dist/external/useRouter.js +0 -3
  119. package/mobile/dist/external/useRouter.js.map +1 -1
  120. package/mobile/dist/hooks/useActiveRoute.js +1 -1
  121. package/mobile/dist/hooks/useActiveRoute.js.map +1 -1
  122. package/mobile/dist/model/Fallback.d.ts +0 -1
  123. package/mobile/dist/services/search/useSearch.js +18 -1
  124. package/mobile/dist/services/search/useSearch.js.map +1 -1
  125. package/mobile/dist/setup-fixture.js +0 -3
  126. package/mobile/dist/setup-fixture.js.map +1 -1
  127. package/mobile/lib/common.css +1 -1
  128. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
  129. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
  130. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
  131. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
  132. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
  133. package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
  134. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
  135. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
  136. package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
  137. package/mobile/lib/components/Blocks.js +0 -4
  138. package/mobile/lib/components/Blocks.js.map +1 -1
  139. package/mobile/lib/components/GalleryLayout/GalleryLayout.js +11 -5
  140. package/mobile/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
  141. package/mobile/lib/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
  142. package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js +18 -0
  143. package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
  144. package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -1
  145. package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
  146. package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
  147. package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
  148. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +6 -6
  149. package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
  150. package/mobile/lib/components/TabsLayout/TabsLayout.js +13 -12
  151. package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
  152. package/mobile/lib/external/useRouter.d.ts +2 -6
  153. package/mobile/lib/external/useRouter.js +0 -3
  154. package/mobile/lib/external/useRouter.js.map +1 -1
  155. package/mobile/lib/hooks/useActiveRoute.js +1 -1
  156. package/mobile/lib/hooks/useActiveRoute.js.map +1 -1
  157. package/mobile/lib/model/Fallback.d.ts +0 -1
  158. package/mobile/lib/services/search/useSearch.js +18 -1
  159. package/mobile/lib/services/search/useSearch.js.map +1 -1
  160. package/mobile/lib/setup-fixture.js +0 -3
  161. package/mobile/lib/setup-fixture.js.map +1 -1
  162. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
  163. package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
  164. package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
  165. package/mobile/src/components/Blocks.ts +0 -4
  166. package/mobile/src/components/GalleryLayout/GalleryLayout.tsx +32 -19
  167. package/mobile/src/components/GalleryLayout/useSortProductBlocks.ts +25 -0
  168. package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
  169. package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
  170. package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
  171. package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +8 -6
  172. package/mobile/src/components/TabsLayout/TabsLayout.tsx +14 -12
  173. package/mobile/src/external/useRouter.ts +2 -9
  174. package/mobile/src/hooks/useActiveRoute.ts +1 -1
  175. package/mobile/src/model/Fallback.ts +0 -1
  176. package/mobile/src/services/search/useSearch.ts +24 -3
  177. package/mobile/src/setup-fixture.ts +0 -3
  178. package/package.json +1 -21
  179. package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
  180. package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
  181. package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
  182. package/src/components/Blocks.mobile.ts +0 -4
  183. package/src/components/Blocks.ts +0 -6
  184. package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -4
  185. package/src/components/ContentPage/ContentPage.fixture.tsx +2 -7
  186. package/src/components/GalleryLayout/GalleryLayout.tsx +32 -19
  187. package/src/components/GalleryLayout/useSortProductBlocks.ts +25 -0
  188. package/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
  189. package/src/components/ProductBlock/ProductBlock.example.json +1 -11
  190. package/src/components/ProductBlock/ProductBlock.fixture.tsx +0 -28
  191. package/src/components/ProductBlock/ProductBlock.tsx +0 -1
  192. package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +8 -6
  193. package/src/components/TabsLayout/TabsLayout.tsx +14 -12
  194. package/src/external/useRouter.ts +2 -9
  195. package/src/hooks/useActiveRoute.ts +1 -1
  196. package/src/icons/IconName.ts +4 -4
  197. package/src/model/Fallback.ts +0 -1
  198. package/src/services/search/useSearch.ts +24 -3
  199. package/src/setup-fixture.ts +0 -3
  200. package/bundle/components/ContentPage/computeAPIFallback.d.ts +0 -4
  201. package/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
  202. package/bundle/components/ContentPage/mapSlot.d.ts +0 -2
  203. package/bundle/components/ContentPage/normalizeBlock.d.ts +0 -3
  204. package/bundle/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
  205. package/bundle/components/ContentPage/normalizePage.d.ts +0 -3
  206. package/bundle/components/ContentPage/toMobileBlock.d.ts +0 -2
  207. package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  208. package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  209. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  210. package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  211. package/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
  212. package/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  213. package/bundle/content-page-repository/ContentPageRepository.d.ts +0 -10
  214. package/bundle/content-page-repository/JSONDocContentBox.d.ts +0 -8
  215. package/bundle/content-page-repository/TransformationOptions.d.ts +0 -4
  216. package/bundle/content-page-repository/clearAttachmentHref.d.ts +0 -2
  217. package/bundle/content-page-repository/computeImgOutputPath.d.ts +0 -3
  218. package/bundle/content-page-repository/extensions.d.ts +0 -3
  219. package/bundle/content-page-repository/index.d.ts +0 -3
  220. package/bundle/content-page-repository/mapJSON.d.ts +0 -1
  221. package/bundle/content-page-repository/mergePages.d.ts +0 -2
  222. package/bundle/content-page-repository/replaceHeadingTags.d.ts +0 -1
  223. package/bundle/content-page-repository/resizeImg.d.ts +0 -3
  224. package/bundle/content-page-repository/transformAttachmentLink.d.ts +0 -3
  225. package/bundle/content-page-repository/transformContentPage.d.ts +0 -4
  226. package/bundle/content-page-repository/transformDocument.d.ts +0 -3
  227. package/bundle/content-page-repository/transformHTML.d.ts +0 -1
  228. package/bundle/content-page-repository/transformImg.d.ts +0 -12
  229. package/bundle/content-page-repository/transformMarkdown.d.ts +0 -1
  230. package/bundle/content-page-repository/transformPicture.d.ts +0 -3
  231. package/dist/components/ContentPage/computeAPIFallback.d.ts +0 -4
  232. package/dist/components/ContentPage/computeAPIFallback.js +0 -36
  233. package/dist/components/ContentPage/computeAPIFallback.js.map +0 -1
  234. package/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
  235. package/dist/components/ContentPage/loadModuleFallback.js +0 -36
  236. package/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
  237. package/dist/components/ContentPage/mapSlot.d.ts +0 -2
  238. package/dist/components/ContentPage/mapSlot.js +0 -16
  239. package/dist/components/ContentPage/mapSlot.js.map +0 -1
  240. package/dist/components/ContentPage/normalizeBlock.d.ts +0 -3
  241. package/dist/components/ContentPage/normalizeBlock.js +0 -15
  242. package/dist/components/ContentPage/normalizeBlock.js.map +0 -1
  243. package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
  244. package/dist/components/ContentPage/normalizeBlock.mobile.js +0 -18
  245. package/dist/components/ContentPage/normalizeBlock.mobile.js.map +0 -1
  246. package/dist/components/ContentPage/normalizePage.d.ts +0 -3
  247. package/dist/components/ContentPage/normalizePage.js +0 -6
  248. package/dist/components/ContentPage/normalizePage.js.map +0 -1
  249. package/dist/components/ContentPage/toMobileBlock.d.ts +0 -2
  250. package/dist/components/ContentPage/toMobileBlock.js +0 -12
  251. package/dist/components/ContentPage/toMobileBlock.js.map +0 -1
  252. package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  253. package/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
  254. package/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
  255. package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  256. package/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
  257. package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
  258. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  259. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
  260. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
  261. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  262. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
  263. package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
  264. package/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
  265. package/dist/components/UnitBlock/UnitBlock.js +0 -11
  266. package/dist/components/UnitBlock/UnitBlock.js.map +0 -1
  267. package/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  268. package/dist/components/UnitBlock/UnitBlockContent.js +0 -2
  269. package/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
  270. package/dist/content-page-repository/ContentPageRepository.d.ts +0 -10
  271. package/dist/content-page-repository/ContentPageRepository.js +0 -31
  272. package/dist/content-page-repository/ContentPageRepository.js.map +0 -1
  273. package/dist/content-page-repository/JSONDocContentBox.d.ts +0 -8
  274. package/dist/content-page-repository/JSONDocContentBox.js +0 -39
  275. package/dist/content-page-repository/JSONDocContentBox.js.map +0 -1
  276. package/dist/content-page-repository/TransformationOptions.d.ts +0 -4
  277. package/dist/content-page-repository/TransformationOptions.js +0 -2
  278. package/dist/content-page-repository/TransformationOptions.js.map +0 -1
  279. package/dist/content-page-repository/clearAttachmentHref.d.ts +0 -2
  280. package/dist/content-page-repository/clearAttachmentHref.js +0 -6
  281. package/dist/content-page-repository/clearAttachmentHref.js.map +0 -1
  282. package/dist/content-page-repository/computeImgOutputPath.d.ts +0 -3
  283. package/dist/content-page-repository/computeImgOutputPath.js +0 -18
  284. package/dist/content-page-repository/computeImgOutputPath.js.map +0 -1
  285. package/dist/content-page-repository/extensions.d.ts +0 -3
  286. package/dist/content-page-repository/extensions.js +0 -18
  287. package/dist/content-page-repository/extensions.js.map +0 -1
  288. package/dist/content-page-repository/index.d.ts +0 -3
  289. package/dist/content-page-repository/index.js +0 -9
  290. package/dist/content-page-repository/index.js.map +0 -1
  291. package/dist/content-page-repository/mapJSON.d.ts +0 -1
  292. package/dist/content-page-repository/mapJSON.js +0 -26
  293. package/dist/content-page-repository/mapJSON.js.map +0 -1
  294. package/dist/content-page-repository/mergePages.d.ts +0 -2
  295. package/dist/content-page-repository/mergePages.js +0 -7
  296. package/dist/content-page-repository/mergePages.js.map +0 -1
  297. package/dist/content-page-repository/replaceHeadingTags.d.ts +0 -1
  298. package/dist/content-page-repository/replaceHeadingTags.js +0 -5
  299. package/dist/content-page-repository/replaceHeadingTags.js.map +0 -1
  300. package/dist/content-page-repository/resizeImg.d.ts +0 -3
  301. package/dist/content-page-repository/resizeImg.js +0 -19
  302. package/dist/content-page-repository/resizeImg.js.map +0 -1
  303. package/dist/content-page-repository/transformAttachmentLink.d.ts +0 -3
  304. package/dist/content-page-repository/transformAttachmentLink.js +0 -40
  305. package/dist/content-page-repository/transformAttachmentLink.js.map +0 -1
  306. package/dist/content-page-repository/transformContentPage.d.ts +0 -4
  307. package/dist/content-page-repository/transformContentPage.js +0 -78
  308. package/dist/content-page-repository/transformContentPage.js.map +0 -1
  309. package/dist/content-page-repository/transformDocument.d.ts +0 -3
  310. package/dist/content-page-repository/transformDocument.js +0 -38
  311. package/dist/content-page-repository/transformDocument.js.map +0 -1
  312. package/dist/content-page-repository/transformHTML.d.ts +0 -1
  313. package/dist/content-page-repository/transformHTML.js +0 -54
  314. package/dist/content-page-repository/transformHTML.js.map +0 -1
  315. package/dist/content-page-repository/transformImg.d.ts +0 -12
  316. package/dist/content-page-repository/transformImg.js +0 -51
  317. package/dist/content-page-repository/transformImg.js.map +0 -1
  318. package/dist/content-page-repository/transformMarkdown.d.ts +0 -1
  319. package/dist/content-page-repository/transformMarkdown.js +0 -18
  320. package/dist/content-page-repository/transformMarkdown.js.map +0 -1
  321. package/dist/content-page-repository/transformPicture.d.ts +0 -3
  322. package/dist/content-page-repository/transformPicture.js +0 -28
  323. package/dist/content-page-repository/transformPicture.js.map +0 -1
  324. package/lib/components/ContentPage/computeAPIFallback.d.ts +0 -4
  325. package/lib/components/ContentPage/computeAPIFallback.js +0 -33
  326. package/lib/components/ContentPage/computeAPIFallback.js.map +0 -1
  327. package/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
  328. package/lib/components/ContentPage/loadModuleFallback.js +0 -10
  329. package/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
  330. package/lib/components/ContentPage/mapSlot.d.ts +0 -2
  331. package/lib/components/ContentPage/mapSlot.js +0 -13
  332. package/lib/components/ContentPage/mapSlot.js.map +0 -1
  333. package/lib/components/ContentPage/normalizeBlock.d.ts +0 -3
  334. package/lib/components/ContentPage/normalizeBlock.js +0 -12
  335. package/lib/components/ContentPage/normalizeBlock.js.map +0 -1
  336. package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
  337. package/lib/components/ContentPage/normalizeBlock.mobile.js +0 -15
  338. package/lib/components/ContentPage/normalizeBlock.mobile.js.map +0 -1
  339. package/lib/components/ContentPage/normalizePage.d.ts +0 -3
  340. package/lib/components/ContentPage/normalizePage.js +0 -3
  341. package/lib/components/ContentPage/normalizePage.js.map +0 -1
  342. package/lib/components/ContentPage/toMobileBlock.d.ts +0 -2
  343. package/lib/components/ContentPage/toMobileBlock.js +0 -9
  344. package/lib/components/ContentPage/toMobileBlock.js.map +0 -1
  345. package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  346. package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +0 -7
  347. package/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
  348. package/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
  349. package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  350. package/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
  351. package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
  352. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  353. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +0 -5
  354. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts +0 -5
  355. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
  356. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
  357. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  358. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
  359. package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
  360. package/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
  361. package/lib/components/UnitBlock/UnitBlock.fixture.d.ts +0 -6
  362. package/lib/components/UnitBlock/UnitBlock.fixture.mobile.d.ts +0 -6
  363. package/lib/components/UnitBlock/UnitBlock.js +0 -9
  364. package/lib/components/UnitBlock/UnitBlock.js.map +0 -1
  365. package/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  366. package/lib/components/UnitBlock/UnitBlockContent.js +0 -2
  367. package/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
  368. package/lib/content-page-repository/ContentPageRepository.d.ts +0 -10
  369. package/lib/content-page-repository/ContentPageRepository.js +0 -25
  370. package/lib/content-page-repository/ContentPageRepository.js.map +0 -1
  371. package/lib/content-page-repository/JSONDocContentBox.d.ts +0 -8
  372. package/lib/content-page-repository/JSONDocContentBox.js +0 -36
  373. package/lib/content-page-repository/JSONDocContentBox.js.map +0 -1
  374. package/lib/content-page-repository/TransformationOptions.d.ts +0 -4
  375. package/lib/content-page-repository/TransformationOptions.js +0 -2
  376. package/lib/content-page-repository/TransformationOptions.js.map +0 -1
  377. package/lib/content-page-repository/clearAttachmentHref.d.ts +0 -2
  378. package/lib/content-page-repository/clearAttachmentHref.js +0 -3
  379. package/lib/content-page-repository/clearAttachmentHref.js.map +0 -1
  380. package/lib/content-page-repository/computeImgOutputPath.d.ts +0 -3
  381. package/lib/content-page-repository/computeImgOutputPath.js +0 -12
  382. package/lib/content-page-repository/computeImgOutputPath.js.map +0 -1
  383. package/lib/content-page-repository/extensions.d.ts +0 -3
  384. package/lib/content-page-repository/extensions.js +0 -16
  385. package/lib/content-page-repository/extensions.js.map +0 -1
  386. package/lib/content-page-repository/index.d.ts +0 -3
  387. package/lib/content-page-repository/index.js +0 -4
  388. package/lib/content-page-repository/index.js.map +0 -1
  389. package/lib/content-page-repository/mapJSON.d.ts +0 -1
  390. package/lib/content-page-repository/mapJSON.js +0 -23
  391. package/lib/content-page-repository/mapJSON.js.map +0 -1
  392. package/lib/content-page-repository/mergePages.d.ts +0 -2
  393. package/lib/content-page-repository/mergePages.js +0 -4
  394. package/lib/content-page-repository/mergePages.js.map +0 -1
  395. package/lib/content-page-repository/replaceHeadingTags.d.ts +0 -1
  396. package/lib/content-page-repository/replaceHeadingTags.js +0 -2
  397. package/lib/content-page-repository/replaceHeadingTags.js.map +0 -1
  398. package/lib/content-page-repository/resizeImg.d.ts +0 -3
  399. package/lib/content-page-repository/resizeImg.js +0 -13
  400. package/lib/content-page-repository/resizeImg.js.map +0 -1
  401. package/lib/content-page-repository/transformAttachmentLink.d.ts +0 -3
  402. package/lib/content-page-repository/transformAttachmentLink.js +0 -34
  403. package/lib/content-page-repository/transformAttachmentLink.js.map +0 -1
  404. package/lib/content-page-repository/transformContentPage.d.ts +0 -4
  405. package/lib/content-page-repository/transformContentPage.js +0 -71
  406. package/lib/content-page-repository/transformContentPage.js.map +0 -1
  407. package/lib/content-page-repository/transformDocument.d.ts +0 -3
  408. package/lib/content-page-repository/transformDocument.js +0 -32
  409. package/lib/content-page-repository/transformDocument.js.map +0 -1
  410. package/lib/content-page-repository/transformHTML.d.ts +0 -1
  411. package/lib/content-page-repository/transformHTML.js +0 -25
  412. package/lib/content-page-repository/transformHTML.js.map +0 -1
  413. package/lib/content-page-repository/transformImg.d.ts +0 -12
  414. package/lib/content-page-repository/transformImg.js +0 -45
  415. package/lib/content-page-repository/transformImg.js.map +0 -1
  416. package/lib/content-page-repository/transformMarkdown.d.ts +0 -1
  417. package/lib/content-page-repository/transformMarkdown.js +0 -12
  418. package/lib/content-page-repository/transformMarkdown.js.map +0 -1
  419. package/lib/content-page-repository/transformPicture.d.ts +0 -3
  420. package/lib/content-page-repository/transformPicture.js +0 -22
  421. package/lib/content-page-repository/transformPicture.js.map +0 -1
  422. package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +0 -4
  423. package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
  424. package/mobile/bundle/components/ContentPage/mapSlot.d.ts +0 -2
  425. package/mobile/bundle/components/ContentPage/normalizeBlock.d.ts +0 -3
  426. package/mobile/bundle/components/ContentPage/normalizePage.d.ts +0 -3
  427. package/mobile/bundle/components/ContentPage/toMobileBlock.d.ts +0 -2
  428. package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  429. package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  430. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  431. package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  432. package/mobile/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
  433. package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  434. package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +0 -10
  435. package/mobile/bundle/content-page-repository/JSONDocContentBox.d.ts +0 -8
  436. package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +0 -4
  437. package/mobile/bundle/content-page-repository/clearAttachmentHref.d.ts +0 -2
  438. package/mobile/bundle/content-page-repository/computeImgOutputPath.d.ts +0 -3
  439. package/mobile/bundle/content-page-repository/extensions.d.ts +0 -3
  440. package/mobile/bundle/content-page-repository/index.d.ts +0 -3
  441. package/mobile/bundle/content-page-repository/mapJSON.d.ts +0 -1
  442. package/mobile/bundle/content-page-repository/mergePages.d.ts +0 -2
  443. package/mobile/bundle/content-page-repository/replaceHeadingTags.d.ts +0 -1
  444. package/mobile/bundle/content-page-repository/resizeImg.d.ts +0 -3
  445. package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +0 -3
  446. package/mobile/bundle/content-page-repository/transformContentPage.d.ts +0 -4
  447. package/mobile/bundle/content-page-repository/transformDocument.d.ts +0 -3
  448. package/mobile/bundle/content-page-repository/transformHTML.d.ts +0 -1
  449. package/mobile/bundle/content-page-repository/transformImg.d.ts +0 -12
  450. package/mobile/bundle/content-page-repository/transformMarkdown.d.ts +0 -1
  451. package/mobile/bundle/content-page-repository/transformPicture.d.ts +0 -3
  452. package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +0 -4
  453. package/mobile/dist/components/ContentPage/computeAPIFallback.js +0 -36
  454. package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +0 -1
  455. package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
  456. package/mobile/dist/components/ContentPage/loadModuleFallback.js +0 -36
  457. package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
  458. package/mobile/dist/components/ContentPage/mapSlot.d.ts +0 -2
  459. package/mobile/dist/components/ContentPage/mapSlot.js +0 -16
  460. package/mobile/dist/components/ContentPage/mapSlot.js.map +0 -1
  461. package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +0 -3
  462. package/mobile/dist/components/ContentPage/normalizeBlock.js +0 -18
  463. package/mobile/dist/components/ContentPage/normalizeBlock.js.map +0 -1
  464. package/mobile/dist/components/ContentPage/normalizePage.d.ts +0 -3
  465. package/mobile/dist/components/ContentPage/normalizePage.js +0 -6
  466. package/mobile/dist/components/ContentPage/normalizePage.js.map +0 -1
  467. package/mobile/dist/components/ContentPage/toMobileBlock.d.ts +0 -2
  468. package/mobile/dist/components/ContentPage/toMobileBlock.js +0 -12
  469. package/mobile/dist/components/ContentPage/toMobileBlock.js.map +0 -1
  470. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  471. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
  472. package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
  473. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  474. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
  475. package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
  476. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  477. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
  478. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
  479. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  480. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
  481. package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
  482. package/mobile/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
  483. package/mobile/dist/components/UnitBlock/UnitBlock.js +0 -11
  484. package/mobile/dist/components/UnitBlock/UnitBlock.js.map +0 -1
  485. package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  486. package/mobile/dist/components/UnitBlock/UnitBlockContent.js +0 -2
  487. package/mobile/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
  488. package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +0 -10
  489. package/mobile/dist/content-page-repository/ContentPageRepository.js +0 -31
  490. package/mobile/dist/content-page-repository/ContentPageRepository.js.map +0 -1
  491. package/mobile/dist/content-page-repository/JSONDocContentBox.d.ts +0 -8
  492. package/mobile/dist/content-page-repository/JSONDocContentBox.js +0 -39
  493. package/mobile/dist/content-page-repository/JSONDocContentBox.js.map +0 -1
  494. package/mobile/dist/content-page-repository/TransformationOptions.d.ts +0 -4
  495. package/mobile/dist/content-page-repository/TransformationOptions.js +0 -2
  496. package/mobile/dist/content-page-repository/TransformationOptions.js.map +0 -1
  497. package/mobile/dist/content-page-repository/clearAttachmentHref.d.ts +0 -2
  498. package/mobile/dist/content-page-repository/clearAttachmentHref.js +0 -6
  499. package/mobile/dist/content-page-repository/clearAttachmentHref.js.map +0 -1
  500. package/mobile/dist/content-page-repository/computeImgOutputPath.d.ts +0 -3
  501. package/mobile/dist/content-page-repository/computeImgOutputPath.js +0 -18
  502. package/mobile/dist/content-page-repository/computeImgOutputPath.js.map +0 -1
  503. package/mobile/dist/content-page-repository/extensions.d.ts +0 -3
  504. package/mobile/dist/content-page-repository/extensions.js +0 -18
  505. package/mobile/dist/content-page-repository/extensions.js.map +0 -1
  506. package/mobile/dist/content-page-repository/index.d.ts +0 -3
  507. package/mobile/dist/content-page-repository/index.js +0 -9
  508. package/mobile/dist/content-page-repository/index.js.map +0 -1
  509. package/mobile/dist/content-page-repository/mapJSON.d.ts +0 -1
  510. package/mobile/dist/content-page-repository/mapJSON.js +0 -26
  511. package/mobile/dist/content-page-repository/mapJSON.js.map +0 -1
  512. package/mobile/dist/content-page-repository/mergePages.d.ts +0 -2
  513. package/mobile/dist/content-page-repository/mergePages.js +0 -7
  514. package/mobile/dist/content-page-repository/mergePages.js.map +0 -1
  515. package/mobile/dist/content-page-repository/replaceHeadingTags.d.ts +0 -1
  516. package/mobile/dist/content-page-repository/replaceHeadingTags.js +0 -5
  517. package/mobile/dist/content-page-repository/replaceHeadingTags.js.map +0 -1
  518. package/mobile/dist/content-page-repository/resizeImg.d.ts +0 -3
  519. package/mobile/dist/content-page-repository/resizeImg.js +0 -19
  520. package/mobile/dist/content-page-repository/resizeImg.js.map +0 -1
  521. package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +0 -3
  522. package/mobile/dist/content-page-repository/transformAttachmentLink.js +0 -40
  523. package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +0 -1
  524. package/mobile/dist/content-page-repository/transformContentPage.d.ts +0 -4
  525. package/mobile/dist/content-page-repository/transformContentPage.js +0 -78
  526. package/mobile/dist/content-page-repository/transformContentPage.js.map +0 -1
  527. package/mobile/dist/content-page-repository/transformDocument.d.ts +0 -3
  528. package/mobile/dist/content-page-repository/transformDocument.js +0 -38
  529. package/mobile/dist/content-page-repository/transformDocument.js.map +0 -1
  530. package/mobile/dist/content-page-repository/transformHTML.d.ts +0 -1
  531. package/mobile/dist/content-page-repository/transformHTML.js +0 -54
  532. package/mobile/dist/content-page-repository/transformHTML.js.map +0 -1
  533. package/mobile/dist/content-page-repository/transformImg.d.ts +0 -12
  534. package/mobile/dist/content-page-repository/transformImg.js +0 -51
  535. package/mobile/dist/content-page-repository/transformImg.js.map +0 -1
  536. package/mobile/dist/content-page-repository/transformMarkdown.d.ts +0 -1
  537. package/mobile/dist/content-page-repository/transformMarkdown.js +0 -18
  538. package/mobile/dist/content-page-repository/transformMarkdown.js.map +0 -1
  539. package/mobile/dist/content-page-repository/transformPicture.d.ts +0 -3
  540. package/mobile/dist/content-page-repository/transformPicture.js +0 -28
  541. package/mobile/dist/content-page-repository/transformPicture.js.map +0 -1
  542. package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +0 -4
  543. package/mobile/lib/components/ContentPage/computeAPIFallback.js +0 -33
  544. package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +0 -1
  545. package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
  546. package/mobile/lib/components/ContentPage/loadModuleFallback.js +0 -10
  547. package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
  548. package/mobile/lib/components/ContentPage/mapSlot.d.ts +0 -2
  549. package/mobile/lib/components/ContentPage/mapSlot.js +0 -13
  550. package/mobile/lib/components/ContentPage/mapSlot.js.map +0 -1
  551. package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +0 -3
  552. package/mobile/lib/components/ContentPage/normalizeBlock.js +0 -15
  553. package/mobile/lib/components/ContentPage/normalizeBlock.js.map +0 -1
  554. package/mobile/lib/components/ContentPage/normalizePage.d.ts +0 -3
  555. package/mobile/lib/components/ContentPage/normalizePage.js +0 -3
  556. package/mobile/lib/components/ContentPage/normalizePage.js.map +0 -1
  557. package/mobile/lib/components/ContentPage/toMobileBlock.d.ts +0 -2
  558. package/mobile/lib/components/ContentPage/toMobileBlock.js +0 -9
  559. package/mobile/lib/components/ContentPage/toMobileBlock.js.map +0 -1
  560. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
  561. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
  562. package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
  563. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
  564. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
  565. package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
  566. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
  567. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
  568. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
  569. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
  570. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
  571. package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
  572. package/mobile/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
  573. package/mobile/lib/components/UnitBlock/UnitBlock.js +0 -9
  574. package/mobile/lib/components/UnitBlock/UnitBlock.js.map +0 -1
  575. package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
  576. package/mobile/lib/components/UnitBlock/UnitBlockContent.js +0 -2
  577. package/mobile/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
  578. package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +0 -10
  579. package/mobile/lib/content-page-repository/ContentPageRepository.js +0 -25
  580. package/mobile/lib/content-page-repository/ContentPageRepository.js.map +0 -1
  581. package/mobile/lib/content-page-repository/JSONDocContentBox.d.ts +0 -8
  582. package/mobile/lib/content-page-repository/JSONDocContentBox.js +0 -36
  583. package/mobile/lib/content-page-repository/JSONDocContentBox.js.map +0 -1
  584. package/mobile/lib/content-page-repository/TransformationOptions.d.ts +0 -4
  585. package/mobile/lib/content-page-repository/TransformationOptions.js +0 -2
  586. package/mobile/lib/content-page-repository/TransformationOptions.js.map +0 -1
  587. package/mobile/lib/content-page-repository/clearAttachmentHref.d.ts +0 -2
  588. package/mobile/lib/content-page-repository/clearAttachmentHref.js +0 -3
  589. package/mobile/lib/content-page-repository/clearAttachmentHref.js.map +0 -1
  590. package/mobile/lib/content-page-repository/computeImgOutputPath.d.ts +0 -3
  591. package/mobile/lib/content-page-repository/computeImgOutputPath.js +0 -12
  592. package/mobile/lib/content-page-repository/computeImgOutputPath.js.map +0 -1
  593. package/mobile/lib/content-page-repository/extensions.d.ts +0 -3
  594. package/mobile/lib/content-page-repository/extensions.js +0 -16
  595. package/mobile/lib/content-page-repository/extensions.js.map +0 -1
  596. package/mobile/lib/content-page-repository/index.d.ts +0 -3
  597. package/mobile/lib/content-page-repository/index.js +0 -4
  598. package/mobile/lib/content-page-repository/index.js.map +0 -1
  599. package/mobile/lib/content-page-repository/mapJSON.d.ts +0 -1
  600. package/mobile/lib/content-page-repository/mapJSON.js +0 -23
  601. package/mobile/lib/content-page-repository/mapJSON.js.map +0 -1
  602. package/mobile/lib/content-page-repository/mergePages.d.ts +0 -2
  603. package/mobile/lib/content-page-repository/mergePages.js +0 -4
  604. package/mobile/lib/content-page-repository/mergePages.js.map +0 -1
  605. package/mobile/lib/content-page-repository/replaceHeadingTags.d.ts +0 -1
  606. package/mobile/lib/content-page-repository/replaceHeadingTags.js +0 -2
  607. package/mobile/lib/content-page-repository/replaceHeadingTags.js.map +0 -1
  608. package/mobile/lib/content-page-repository/resizeImg.d.ts +0 -3
  609. package/mobile/lib/content-page-repository/resizeImg.js +0 -13
  610. package/mobile/lib/content-page-repository/resizeImg.js.map +0 -1
  611. package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +0 -3
  612. package/mobile/lib/content-page-repository/transformAttachmentLink.js +0 -34
  613. package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +0 -1
  614. package/mobile/lib/content-page-repository/transformContentPage.d.ts +0 -4
  615. package/mobile/lib/content-page-repository/transformContentPage.js +0 -71
  616. package/mobile/lib/content-page-repository/transformContentPage.js.map +0 -1
  617. package/mobile/lib/content-page-repository/transformDocument.d.ts +0 -3
  618. package/mobile/lib/content-page-repository/transformDocument.js +0 -32
  619. package/mobile/lib/content-page-repository/transformDocument.js.map +0 -1
  620. package/mobile/lib/content-page-repository/transformHTML.d.ts +0 -1
  621. package/mobile/lib/content-page-repository/transformHTML.js +0 -25
  622. package/mobile/lib/content-page-repository/transformHTML.js.map +0 -1
  623. package/mobile/lib/content-page-repository/transformImg.d.ts +0 -12
  624. package/mobile/lib/content-page-repository/transformImg.js +0 -45
  625. package/mobile/lib/content-page-repository/transformImg.js.map +0 -1
  626. package/mobile/lib/content-page-repository/transformMarkdown.d.ts +0 -1
  627. package/mobile/lib/content-page-repository/transformMarkdown.js +0 -12
  628. package/mobile/lib/content-page-repository/transformMarkdown.js.map +0 -1
  629. package/mobile/lib/content-page-repository/transformPicture.d.ts +0 -3
  630. package/mobile/lib/content-page-repository/transformPicture.js +0 -22
  631. package/mobile/lib/content-page-repository/transformPicture.js.map +0 -1
  632. package/mobile/src/components/ContentPage/computeAPIFallback.ts +0 -67
  633. package/mobile/src/components/ContentPage/loadModuleFallback.ts +0 -11
  634. package/mobile/src/components/ContentPage/mapSlot.ts +0 -18
  635. package/mobile/src/components/ContentPage/normalizeBlock.ts +0 -25
  636. package/mobile/src/components/ContentPage/normalizePage.ts +0 -8
  637. package/mobile/src/components/ContentPage/toMobileBlock.ts +0 -11
  638. package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
  639. package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
  640. package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
  641. package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
  642. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
  643. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
  644. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
  645. package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
  646. package/mobile/src/components/UnitBlock/UnitBlock.example.json +0 -9
  647. package/mobile/src/components/UnitBlock/UnitBlock.tsx +0 -17
  648. package/mobile/src/components/UnitBlock/UnitBlock.ui.json +0 -1
  649. package/mobile/src/components/UnitBlock/UnitBlockContent.ts +0 -7
  650. package/mobile/src/content-page-repository/ContentPageRepository.ts +0 -31
  651. package/mobile/src/content-page-repository/JSONDocContentBox.ts +0 -56
  652. package/mobile/src/content-page-repository/TransformationOptions.ts +0 -4
  653. package/mobile/src/content-page-repository/clearAttachmentHref.ts +0 -3
  654. package/mobile/src/content-page-repository/computeImgOutputPath.ts +0 -21
  655. package/mobile/src/content-page-repository/extensions.ts +0 -17
  656. package/mobile/src/content-page-repository/index.ts +0 -3
  657. package/mobile/src/content-page-repository/mapJSON.ts +0 -30
  658. package/mobile/src/content-page-repository/mergePages.ts +0 -8
  659. package/mobile/src/content-page-repository/replaceHeadingTags.ts +0 -2
  660. package/mobile/src/content-page-repository/resizeImg.ts +0 -17
  661. package/mobile/src/content-page-repository/transformAttachmentLink.ts +0 -46
  662. package/mobile/src/content-page-repository/transformContentPage.ts +0 -102
  663. package/mobile/src/content-page-repository/transformDocument.ts +0 -43
  664. package/mobile/src/content-page-repository/transformHTML.ts +0 -28
  665. package/mobile/src/content-page-repository/transformImg.ts +0 -81
  666. package/mobile/src/content-page-repository/transformMarkdown.ts +0 -14
  667. package/mobile/src/content-page-repository/transformPicture.ts +0 -35
  668. package/src/components/ContentPage/computeAPIFallback.ts +0 -67
  669. package/src/components/ContentPage/loadModuleFallback.ts +0 -11
  670. package/src/components/ContentPage/mapSlot.ts +0 -18
  671. package/src/components/ContentPage/normalizeBlock.mobile.ts +0 -25
  672. package/src/components/ContentPage/normalizeBlock.ts +0 -21
  673. package/src/components/ContentPage/normalizePage.ts +0 -8
  674. package/src/components/ContentPage/toMobileBlock.ts +0 -11
  675. package/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
  676. package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +0 -109
  677. package/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
  678. package/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
  679. package/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
  680. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
  681. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +0 -47
  682. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +0 -47
  683. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
  684. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
  685. package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
  686. package/src/components/UnitBlock/UnitBlock.example.json +0 -9
  687. package/src/components/UnitBlock/UnitBlock.fixture.mobile.tsx +0 -27
  688. package/src/components/UnitBlock/UnitBlock.fixture.tsx +0 -27
  689. package/src/components/UnitBlock/UnitBlock.tsx +0 -17
  690. package/src/components/UnitBlock/UnitBlock.ui.json +0 -1
  691. package/src/components/UnitBlock/UnitBlockContent.ts +0 -7
  692. package/src/content-page-repository/ContentPageRepository.ts +0 -31
  693. package/src/content-page-repository/JSONDocContentBox.ts +0 -56
  694. package/src/content-page-repository/TransformationOptions.ts +0 -4
  695. package/src/content-page-repository/clearAttachmentHref.ts +0 -3
  696. package/src/content-page-repository/computeImgOutputPath.ts +0 -21
  697. package/src/content-page-repository/extensions.ts +0 -17
  698. package/src/content-page-repository/index.ts +0 -3
  699. package/src/content-page-repository/mapJSON.ts +0 -30
  700. package/src/content-page-repository/mergePages.ts +0 -8
  701. package/src/content-page-repository/replaceHeadingTags.ts +0 -2
  702. package/src/content-page-repository/resizeImg.ts +0 -17
  703. package/src/content-page-repository/transformAttachmentLink.ts +0 -46
  704. package/src/content-page-repository/transformContentPage.ts +0 -102
  705. package/src/content-page-repository/transformDocument.ts +0 -43
  706. package/src/content-page-repository/transformHTML.ts +0 -28
  707. package/src/content-page-repository/transformImg.ts +0 -81
  708. package/src/content-page-repository/transformMarkdown.ts +0 -14
  709. package/src/content-page-repository/transformPicture.ts +0 -35
@@ -1,4 +0,0 @@
1
- import { type ContentPageDef } from '../model/ContentPageDef';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare function transformContentPage(pagePath: string, options: TransformationOptions): Promise<ContentPageDef>;
4
- export declare const generatedPagePath: (pagePath: string) => string;
@@ -1,71 +0,0 @@
1
- import fs from 'fs';
2
- import util from 'util';
3
- import { isUUID } from '../utils/isUUID.js';
4
- import { tableFunc } from '../utils/tableFunc.js';
5
- import { ATTACHMENT_PREFIX } from './clearAttachmentHref.js';
6
- import { DOCUMENT_EXT_LIST, IMAGE_EXT_LIST, OUTPUT_SUFFIX } from './extensions.js';
7
- import { mapJSON } from './mapJSON.js';
8
- import { mergePages } from './mergePages.js';
9
- import { transformAttachmentLink } from './transformAttachmentLink.js';
10
- import { transformDocument } from './transformDocument.js';
11
- import { transformHTML } from './transformHTML.js';
12
- import { transformMarkdown } from './transformMarkdown.js';
13
- import { transformPicture } from './transformPicture.js';
14
- const readFile = util.promisify(fs.readFile);
15
- const writeFile = util.promisify(fs.writeFile);
16
- const DEFAULT_PARENT_CONTENT = {};
17
- export async function transformContentPage(pagePath, options) {
18
- const content = JSON.parse(await readFile(pagePath, 'utf8'));
19
- const parentContent = await (content?._extends
20
- ? JSON.parse(await readFile(content._extends, 'utf-8'))
21
- : DEFAULT_PARENT_CONTENT);
22
- const mergedContent = mergePages(parentContent, content);
23
- const result = await mapJSON(mergedContent, async (value, [key]) => {
24
- try {
25
- return await transform([value, key])(value, pagePath, options);
26
- }
27
- catch (ex) {
28
- console.warn(`Error while transforming field "${key}" on page: ${pagePath}`);
29
- console.error(ex);
30
- }
31
- return value;
32
- });
33
- await writeFile(generatedPagePath(pagePath), JSON.stringify(result), 'utf-8');
34
- return result;
35
- }
36
- const transform = tableFunc([
37
- [([value, key]) => isMarkdown(key, value), async (value) => transformMarkdown(value)],
38
- [([value, key]) => isHTML(key, value), async (value) => transformHTML(value)],
39
- [([value]) => isUUID(value?.src), async (value) => ({ src: value?.src })],
40
- [
41
- ([value]) => isAttachmentLink(value),
42
- async (value, pagePath, options) => transformAttachmentLink(value, pagePath, options),
43
- ],
44
- [
45
- ([value]) => isAttachmentFile(value, DOCUMENT_EXT_LIST),
46
- async (value, pagePath, options) => transformDocument(value, pagePath, options),
47
- ],
48
- [
49
- ([value]) => isAttachmentFile(value, IMAGE_EXT_LIST),
50
- async (value, pagePath, options) => transformPicture(value, pagePath, options),
51
- ],
52
- [() => true, async (value) => value],
53
- ]);
54
- export const generatedPagePath = (pagePath) => `${pagePath}${OUTPUT_SUFFIX}`;
55
- const isMarkdown = (key, value) => isString(value) && key?.endsWith('__md');
56
- const isHTML = (key, value) => isString(value) && key?.endsWith('__html');
57
- const isAttachmentLink = (_) => isLocalPath(_?.href) && (_.href.startsWith(ATTACHMENT_PREFIX) || isLocalFile(_.href));
58
- const isAttachmentFile = (_, exts) => Boolean(_ && isLocalPath(_?.src)) && exts.some((ext) => _.src.toLowerCase().endsWith(ext));
59
- const isLocalPath = (_) => isString(_) && _.length < 1024 && !isURL(_);
60
- const isURL = (src) => ['data:', 'https:', 'http:'].some((proto) => src.startsWith(proto));
61
- const isString = (_) => Boolean(_ && typeof _ === 'string');
62
- const isLocalFile = (_) => isString(_) && isFileExists(_);
63
- const isFileExists = (_) => {
64
- try {
65
- return fs.statSync(_).isFile();
66
- }
67
- catch (ex) {
68
- return false;
69
- }
70
- };
71
- //# sourceMappingURL=transformContentPage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformContentPage.js","sourceRoot":"","sources":["../../src/content-page-repository/transformContentPage.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AAKxB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAChF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAC7C,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;AAE/C,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAElC,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,QAAgB,EAChB,OAA8B;IAE9B,MAAM,OAAO,GAAe,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IACzE,MAAM,aAAa,GAAe,MAAM,CAAC,OAAO,EAAE,QAAQ;QAC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,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAChC;IAAC,OAAO,EAAE,EAAE;QACX,OAAO,KAAK,CAAC;KACd;AACH,CAAC,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type Attachment } from '../model/Attachment';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare function transformDocument(attachment: Attachment, pagePath: string, options: TransformationOptions): Promise<Attachment>;
@@ -1,32 +0,0 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import util from 'util';
4
- import { isUUID } from '../utils/isUUID.js';
5
- const mkdir = util.promisify(fs.mkdir);
6
- const copyFile = util.promisify(fs.copyFile);
7
- const stat = util.promisify(fs.stat);
8
- export async function transformDocument(attachment, pagePath, options) {
9
- if (!attachment?.src || isUUID(attachment.src)) {
10
- return attachment;
11
- }
12
- const { contentDir, publicDir } = options;
13
- const input = attachment.src;
14
- const docRelativePath = path.relative(contentDir, input);
15
- const output = path.join(publicDir, docRelativePath);
16
- const inputFileSize = (await stat(input)).size;
17
- try {
18
- await mkdir(path.dirname(output), { recursive: true });
19
- await copyFile(input, output);
20
- }
21
- catch (e) {
22
- console.info(`No "${input}" attachment found on page: "${pagePath}"`);
23
- return attachment;
24
- }
25
- const src = path.join('/', docRelativePath);
26
- return {
27
- ...attachment,
28
- src,
29
- fileSize: inputFileSize,
30
- };
31
- }
32
- //# sourceMappingURL=transformDocument.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformDocument.js","sourceRoot":"","sources":["../../src/content-page-repository/transformDocument.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACvC,MAAM,QAAQ,GAAG,IAA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1
- import rehypeParse from 'rehype-parse';
2
- import rehypeSanitize, { defaultSchema } from 'rehype-sanitize';
3
- import rehypeStringify from 'rehype-stringify';
4
- import { unified } from 'unified';
5
- import { replaceHeadingTags } from './replaceHeadingTags.js';
6
- export async function transformHTML(html) {
7
- if (!html) {
8
- return '';
9
- }
10
- const extendedSchema = {
11
- ...defaultSchema,
12
- protocols: {
13
- ...defaultSchema.protocols,
14
- href: [...(defaultSchema?.protocols?.href || []), 'tel'],
15
- src: [...(defaultSchema.protocols?.src ?? []), 'data'],
16
- },
17
- };
18
- const result = await unified()
19
- .use(rehypeParse)
20
- .use(rehypeSanitize, extendedSchema)
21
- .use(rehypeStringify)
22
- .process(html);
23
- return replaceHeadingTags(result.toString('utf-8'));
24
- }
25
- //# sourceMappingURL=transformHTML.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformHTML.js","sourceRoot":"","sources":["../../src/content-page-repository/transformHTML.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,cAAc,EAAE,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChE,OAAO,eAAe,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,KAAK,UAAU,aAAa,CAAC,IAA+B;IACjE,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,EAAE,CAAC;KACX;IAED,MAAM,cAAc,GAAG;QACrB,GAAG,aAAa;QAChB,SAAS,EAAE;YACT,GAAG,aAAa,CAAC,SAAS;YAC1B,IAAI,EAAE,CAAC,GAAG,CAAC,aAAa,EAAE,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC;YACxD,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,SAAS,EAAE,GAAG,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC;SACvD;KACF,CAAC;IAEF,MAAM,MAAM,GAAG,MAAM,OAAO,EAAE;SAC3B,GAAG,CAAC,WAAW,CAAC;SAChB,GAAG,CAAC,cAAc,EAAE,cAAc,CAAC;SACnC,GAAG,CAAC,eAAe,CAAC;SACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB,OAAO,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -1,12 +0,0 @@
1
- import { type ImageSize } from '../model/ImageSize';
2
- import { type ImgSource } from '../model/Picture';
3
- import { type TransformationOptions } from './TransformationOptions';
4
- declare type ImgOutputPath = string;
5
- declare type TransformationTaskKey = ImgOutputPath;
6
- declare type TransformationTasksCache = Map<TransformationTaskKey, Promise<ImgOutputPath>>;
7
- declare type TransformImgOptions = TransformationOptions & ImgSource & {
8
- containerSize?: ImageSize;
9
- cache?: TransformationTasksCache;
10
- };
11
- export declare function transformImg(src: string, pagePath: string, options: TransformImgOptions): ImgOutputPath | Promise<ImgOutputPath>;
12
- export {};
@@ -1,45 +0,0 @@
1
- import fs from 'fs';
2
- import path from 'path';
3
- import sharp from 'sharp';
4
- import util from 'util';
5
- import { isPictureSizeEmpty } from '../utils/isPictureSizeEmpty.js';
6
- import { computeImgOutputPath } from './computeImgOutputPath.js';
7
- import { resizeImg } from './resizeImg.js';
8
- const mkdir = util.promisify(fs.mkdir);
9
- const copyFile = util.promisify(fs.copyFile);
10
- const defaultTransformationCache = new Map();
11
- const isNilTransform = ({ size, containerSize, format }) => isPictureSizeEmpty(size) && isPictureSizeEmpty(containerSize) && !format;
12
- const isVectorInput = (input) => ['.svg', '.eps', '.epsf', '.epsi', '.pdf'].some((ext) => input.toLowerCase().endsWith(ext));
13
- export function transformImg(src, pagePath, options) {
14
- if (!src) {
15
- return src;
16
- }
17
- const withoutTransform = isNilTransform(options) || isVectorInput(src);
18
- const output = computeImgOutputPath(src, options, withoutTransform);
19
- const { cache = defaultTransformationCache } = options;
20
- const cachedResult = cache.get(output);
21
- if (cachedResult) {
22
- return cachedResult;
23
- }
24
- const result = (async () => {
25
- try {
26
- await mkdir(path.dirname(output), { recursive: true });
27
- if (withoutTransform) {
28
- await copyFile(src, output);
29
- }
30
- else {
31
- const chain = await computeTransformationChain(options)(sharp(src));
32
- await chain.toFile(output);
33
- }
34
- }
35
- catch (e) {
36
- console.info(`No "${src}" attachment found on page: "${pagePath}"`);
37
- }
38
- return output;
39
- })();
40
- cache.set(output, result);
41
- return result;
42
- }
43
- const computeTransformationChain = ({ size, containerSize, format, options, }) => pipe(resizeImg(isPictureSizeEmpty(size) ? containerSize : size), (_) => format ? _.toFormat(format, { ...options, lossless: true }) : _);
44
- const pipe = (...operations) => operations.reduce((a, b) => async (chain) => b(await a(chain)));
45
- //# sourceMappingURL=transformImg.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformImg.js","sourceRoot":"","sources":["../../src/content-page-repository/transformImg.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAGxC,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACvC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAS7C,MAAM,0BAA0B,GAA6B,IAAI,GAAG,EAAE,CAAC;AAEvE,MAAM,cAAc,GAAG,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,MAAM,EAAuB,EAAE,EAAE,CAC9E,kBAAk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O,CAAC,EAAE;YACV,OAAO,CAAC,IAAI,CAAC,OAAO,GAAG,gCAAgC,QAAQ,GAAG,CAAC,CAAC;SACrE;QAED,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC,EAAE,CAAC;IACL,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAE1B,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,0BAA0B,GAAG,CAAC,EAClC,IAAI,EACJ,aAAa,EACb,MAAM,EACN,OAAO,GACa,EAAE,EAAE,CACxB,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CACrE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,GAAG,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAChE,CAAC;AAEJ,MAAM,IAAI,GAAG,CAAC,GAAG,UAA2D,EAAE,EAAE,CAC9E,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,KAAY,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC"}
@@ -1 +0,0 @@
1
- export declare function transformMarkdown(markdown: string | null | undefined): Promise<string>;
@@ -1,12 +0,0 @@
1
- import remarkHtml from 'remark-html';
2
- import remarkParse from 'remark-parse';
3
- import { unified } from 'unified';
4
- import { replaceHeadingTags } from './replaceHeadingTags.js';
5
- export async function transformMarkdown(markdown) {
6
- if (!markdown) {
7
- return '';
8
- }
9
- const result = await unified().use(remarkParse).use(remarkHtml).process(markdown);
10
- return replaceHeadingTags(result.toString('utf-8'));
11
- }
12
- //# sourceMappingURL=transformMarkdown.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformMarkdown.js","sourceRoot":"","sources":["../../src/content-page-repository/transformMarkdown.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,WAAW,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,QAAmC;IACzE,IAAI,CAAC,QAAQ,EAAE;QACb,OAAO,EAAE,CAAC;KACX;IAED,MAAM,MAAM,GAAG,MAAM,OAAO,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IAElF,OAAO,kBAAkB,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;AACtD,CAAC"}
@@ -1,3 +0,0 @@
1
- import { type Picture } from '../model/Picture';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare function transformPicture(picture: Picture, pagePath: string, options: TransformationOptions): Promise<Picture>;
@@ -1,22 +0,0 @@
1
- import path from 'path';
2
- import sharp from 'sharp';
3
- import { transformImg } from './transformImg.js';
4
- export async function transformPicture(picture, pagePath, options) {
5
- const src = picture?.src || '';
6
- const transformedImgPath = await transformImg(src, pagePath, { ...options, ...picture });
7
- const { width, height } = await sharp(transformedImgPath).metadata();
8
- const containerSize = width && height ? { width, height } : undefined;
9
- const sources = picture.sources || [];
10
- const transformedSources = await Promise.all(sources.map((_) => transformImg(src, pagePath, { ...options, ..._, containerSize })));
11
- const imgPathToSrc = (_) => path.join('/', path.relative(options.publicDir, _));
12
- return {
13
- ...picture,
14
- src: imgPathToSrc(transformedImgPath),
15
- sources: transformedSources.map((_, i) => ({
16
- ...sources[i],
17
- src: imgPathToSrc(_),
18
- size: { width, height },
19
- })),
20
- };
21
- }
22
- //# sourceMappingURL=transformPicture.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"transformPicture.js","sourceRoot":"","sources":["../../src/content-page-repository/transformPicture.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,MAAM,CAAC,KAAK,UAAU,gBAAgB,CACpC,OAAgB,EAChB,QAAgB,EAChB,OAA8B;IAE9B,MAAM,GAAG,GAAG,OAAO,EAAE,GAAG,IAAI,EAAE,CAAC;IAE/B,MAAM,kBAAkB,GAAG,MAAM,YAAY,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,GAAG,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAEzF,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,KAAK,CAAC,kBAAkB,CAAC,CAAC,QAAQ,EAAE,CAAC;IACrE,MAAM,aAAa,GAAG,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAEtE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,EAAE,CAAC;IACtC,MAAM,kBAAkB,GAAG,MAAM,OAAO,CAAC,GAAG,CAC1C,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,EAAE,QAAQ,EAAE,EAAE,GAAG,OAAO,EAAE,GAAG,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CACrF,CAAC;IAEF,MAAM,YAAY,GAAG,CAAC,CAAS,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC;IAExF,OAAO;QACL,GAAG,OAAO;QACV,GAAG,EAAE,YAAY,CAAC,kBAAkB,CAAC;QACrC,OAAO,EAAE,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;YACzC,GAAG,OAAO,CAAC,CAAC,CAAC;YACb,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC;YACpB,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE;SACxB,CAAC,CAAC;KACJ,CAAC;AACJ,CAAC"}
@@ -1,4 +0,0 @@
1
- import { type BlocksRegistry } from '../../model/BlocksRegistry';
2
- import { type ContentPageDef } from '../../model/ContentPageDef';
3
- import { type Fallback } from '../../model/Fallback';
4
- export declare const computeAPIFallback: (blocksRegistry: BlocksRegistry, contentPageData: ContentPageDef) => Promise<Fallback>;
@@ -1,2 +0,0 @@
1
- import { type FallbackMap } from '../../model/Fallback';
2
- export declare const loadModuleFallback: (blockName: string) => Promise<FallbackMap | undefined>;
@@ -1,2 +0,0 @@
1
- import { type BlockDef, type Slot } from '../../model/ContentPageDef';
2
- export declare const mapSlot: (mapper: (blocks?: BlockDef[]) => BlockDef[]) => <S extends Slot>(slot: S) => S;
@@ -1,3 +0,0 @@
1
- import { type BlocksRegistry } from '../../model/BlocksRegistry';
2
- import { type Slot } from '../../model/ContentPageDef';
3
- export declare function normalizeBlock<S extends Slot>(block?: S, blocksRegistry?: BlocksRegistry): S;
@@ -1,3 +0,0 @@
1
- import { type BlocksRegistry } from '../../model/BlocksRegistry';
2
- import { type ContentPageDef } from '../../model/ContentPageDef';
3
- export declare const normalizePage: (blocksRegistry: BlocksRegistry) => (contentPage: ContentPageDef | undefined | null) => ContentPageDef;
@@ -1,2 +0,0 @@
1
- import { type BlockDef } from '../../model/ContentPageDef';
2
- export declare function toMobileBlock(block?: BlockDef): BlockDef;
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
- import { type InvestmentInfoContent } from './InvestmentInfoContent';
3
- export interface InvestmentInfoProps extends InvestmentInfoContent, UniBlockProps {
4
- }
5
- export declare const InvestmentInfo: import("@redneckz/uni-jsx").UNIComponent<InvestmentInfoProps, any, any>;
@@ -1,43 +0,0 @@
1
- import { type BulletsProps } from '../../model/Bullets';
2
- import { type TextProps, type TitleProps } from '../../model/HeadlineType';
3
- import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
4
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
5
- /**
6
- * @title Цвет
7
- * @enumNames ["Оранжевый", "Светло-зеленый", "Зеленый", "Тёмно-зеленый"]
8
- */
9
- export declare type InvestmentCellColor = 'yellow' | 'green-light' | 'green' | 'green-dark';
10
- /**
11
- * @title Высота
12
- */
13
- export declare type InvestmentCellSize = 'XL' | 'L' | 'M' | 'S' | 'XS';
14
- /**
15
- * @title Ячейка
16
- */
17
- export declare type InvestmentCell = TextProps & {
18
- cellColor?: InvestmentCellColor;
19
- cellSize?: InvestmentCellSize;
20
- };
21
- /**
22
- * @title Элемент данных 1
23
- */
24
- export declare type InvestmentZeroColumn = TitleProps & {
25
- /** @hidden */
26
- cells?: InvestmentCell[];
27
- };
28
- /**
29
- * @title Элемент данных
30
- */
31
- export declare type InvestmentColumn = TitleProps & {
32
- /** @title Ячейки */
33
- cells?: InvestmentCell[];
34
- };
35
- /**
36
- * @title Блок инвестиций
37
- */
38
- export declare type InvestmentInfoContent = UniBlockContent & RichTextProps & BulletsProps & {
39
- /** @title Элемент данных 1 */
40
- investmentZeroColumn?: InvestmentZeroColumn;
41
- /** @title Остальные элементы данных */
42
- investmentColumns?: InvestmentColumn[];
43
- };
@@ -1,5 +0,0 @@
1
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
- import { type RepresentativeOfficeInfoContent } from './RepresentativeOfficeInfoContent';
3
- export interface RepresentativeOfficeInfoProps extends RepresentativeOfficeInfoContent, UniBlockProps {
4
- }
5
- export declare const RepresentativeOfficeInfo: import("@redneckz/uni-jsx").UNIComponent<RepresentativeOfficeInfoProps, any, any>;
@@ -1,18 +0,0 @@
1
- import { type TitleProps } from '../../model/HeadlineType';
2
- import { type IconProps } from '../../model/Picture';
3
- import { type LinkButtonContent } from '../../ui-kit/LinkButton/LinkButtonContent';
4
- import { type RichTextProps } from '../../ui-kit/RichText/RichTextProps';
5
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
6
- /**
7
- * @title Блок с информацией о представительстве
8
- */
9
- export declare type RepresentativeOfficeInfoContent = UniBlockContent & TitleProps & RichTextProps & IconProps & {
10
- /** @title Адрес */
11
- address?: string;
12
- /** @title Телефон (факс) */
13
- telephone?: string;
14
- /** @title E-mail */
15
- email?: string;
16
- /** @title Кнопка */
17
- button?: LinkButtonContent;
18
- };
@@ -1,6 +0,0 @@
1
- import { type UniBlockProps } from '../../UniBlock/UniBlockProps';
2
- import { type UnitBlockContent } from './UnitBlockContent';
3
- interface UnitBlockProps extends UnitBlockContent, UniBlockProps {
4
- }
5
- export declare const UnitBlock: import("@redneckz/uni-jsx").UNIComponent<UnitBlockProps, any, any>;
6
- export {};
@@ -1,6 +0,0 @@
1
- import { type UnitProps } from '../../ui-kit/Unit/UnitProps';
2
- import { type UniBlockContent } from '../../UniBlock/UniBlockProps';
3
- /**
4
- * @title Показатель
5
- */
6
- export declare type UnitBlockContent = UniBlockContent & UnitProps;
@@ -1,10 +0,0 @@
1
- import { type ContentPageDef } from '../model/ContentPageDef';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare class ContentPageRepository {
4
- private readonly options;
5
- static readonly inst: ContentPageRepository;
6
- constructor(options?: TransformationOptions);
7
- listAllContentPages(): Promise<string[]>;
8
- readPage(filePath: string): Promise<ContentPageDef>;
9
- generatePage(filePath: string): Promise<ContentPageDef>;
10
- }
@@ -1,8 +0,0 @@
1
- import { JSONBoxDefault, type JSONBox, type JSONNode } from '@redneckz/json-op';
2
- import { type JSONPathElement } from '@redneckz/json-op/lib/JSONPath';
3
- export declare class JSONDocContentBox extends JSONBoxDefault {
4
- size(): number;
5
- entries(): Array<[p: JSONPathElement, child: JSONBox]>;
6
- get(p?: JSONPathElement): JSONBox;
7
- set(p: JSONPathElement | undefined, child: JSONNode): JSONBox;
8
- }
@@ -1,4 +0,0 @@
1
- export interface TransformationOptions {
2
- contentDir: string;
3
- publicDir: string;
4
- }
@@ -1,2 +0,0 @@
1
- export declare const ATTACHMENT_PREFIX = "file://";
2
- export declare const clearAttachmentHref: (href: string) => string;
@@ -1,3 +0,0 @@
1
- import { type ImgSource } from '../model/Picture';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare function computeImgOutputPath(imgInputPath: string, { contentDir, publicDir, format, size }: TransformationOptions & ImgSource, withoutTransform?: boolean): string;
@@ -1,3 +0,0 @@
1
- export declare const OUTPUT_SUFFIX = ".static";
2
- export declare const DOCUMENT_EXT_LIST: string[];
3
- export declare const IMAGE_EXT_LIST: string[];
@@ -1,3 +0,0 @@
1
- export { clearAttachmentHref } from './clearAttachmentHref';
2
- export { ContentPageRepository } from './ContentPageRepository';
3
- export { transformContentPage } from './transformContentPage';
@@ -1 +0,0 @@
1
- export declare function mapJSON<T>(data: T, mapper: <In, Out = In>(value: In, key: string[]) => Promise<Out>, keyParts?: string[]): Promise<T>;
@@ -1,2 +0,0 @@
1
- import { type JSONRecord } from '@redneckz/json-op';
2
- export declare const mergePages: (page: JSONRecord, diffs: JSONRecord) => JSONRecord;
@@ -1 +0,0 @@
1
- export declare const replaceHeadingTags: (html: string) => string;
@@ -1,3 +0,0 @@
1
- import { type ResizeOptions, type Sharp } from 'sharp';
2
- import { type ImageSize } from '../model/ImageSize';
3
- export declare const resizeImg: (size?: Partial<ImageSize>, options?: ResizeOptions) => (chain: Sharp) => Sharp;
@@ -1,3 +0,0 @@
1
- import { type LinkProps } from '../model/LinkProps';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare function transformAttachmentLink(link: LinkProps, pagePath: string, options: TransformationOptions): Promise<LinkProps>;
@@ -1,4 +0,0 @@
1
- import { type ContentPageDef } from '../model/ContentPageDef';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare function transformContentPage(pagePath: string, options: TransformationOptions): Promise<ContentPageDef>;
4
- export declare const generatedPagePath: (pagePath: string) => string;
@@ -1,3 +0,0 @@
1
- import { type Attachment } from '../model/Attachment';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare function transformDocument(attachment: Attachment, pagePath: string, options: TransformationOptions): Promise<Attachment>;
@@ -1 +0,0 @@
1
- export declare function transformHTML(html: string | null | undefined): Promise<string>;
@@ -1,12 +0,0 @@
1
- import { type ImageSize } from '../model/ImageSize';
2
- import { type ImgSource } from '../model/Picture';
3
- import { type TransformationOptions } from './TransformationOptions';
4
- declare type ImgOutputPath = string;
5
- declare type TransformationTaskKey = ImgOutputPath;
6
- declare type TransformationTasksCache = Map<TransformationTaskKey, Promise<ImgOutputPath>>;
7
- declare type TransformImgOptions = TransformationOptions & ImgSource & {
8
- containerSize?: ImageSize;
9
- cache?: TransformationTasksCache;
10
- };
11
- export declare function transformImg(src: string, pagePath: string, options: TransformImgOptions): ImgOutputPath | Promise<ImgOutputPath>;
12
- export {};
@@ -1 +0,0 @@
1
- export declare function transformMarkdown(markdown: string | null | undefined): Promise<string>;
@@ -1,3 +0,0 @@
1
- import { type Picture } from '../model/Picture';
2
- import { type TransformationOptions } from './TransformationOptions';
3
- export declare function transformPicture(picture: Picture, pagePath: string, options: TransformationOptions): Promise<Picture>;
@@ -1,4 +0,0 @@
1
- import { type BlocksRegistry } from '../../model/BlocksRegistry';
2
- import { type ContentPageDef } from '../../model/ContentPageDef';
3
- import { type Fallback } from '../../model/Fallback';
4
- export declare const computeAPIFallback: (blocksRegistry: BlocksRegistry, contentPageData: ContentPageDef) => Promise<Fallback>;
@@ -1,36 +0,0 @@
1
- Object.defineProperty(exports, "__esModule", { value: true });
2
- exports.computeAPIFallback = void 0;
3
- const json_ref_1 = require("@redneckz/json-ref");
4
- const ContentPageRepository_1 = require("../../content-page-repository/ContentPageRepository");
5
- const unique_1 = require("../../utils/unique");
6
- const url_1 = require("../../utils/url");
7
- const loadModuleFallback_1 = require("./loadModuleFallback");
8
- const BASE_DIR = 'content';
9
- const computeAPIFallback = async (blocksRegistry, contentPageData) => {
10
- return Object.fromEntries((await Promise.all([
11
- computeFallbackFromModules(blocksRegistry),
12
- computeFallbackFromContentRefs(contentPageData),
13
- ]))
14
- .flatMap((_) => _)
15
- .filter(([key, data]) => key && data));
16
- };
17
- exports.computeAPIFallback = computeAPIFallback;
18
- const computeFallbackFromModules = async (blocksRegistry) => {
19
- const fallbackMap = (await Promise.all(Object.keys(blocksRegistry).map(loadModuleFallback_1.loadModuleFallback)))
20
- .filter((_) => Boolean(_))
21
- .reduce((acc, _) => ({ ...acc, ..._ }), {});
22
- return (await Promise.allSettled(Object.entries(fallbackMap).map(async ([key, fetcher]) => [key, await fetcher()])))
23
- .filter((_) => _.status === 'fulfilled')
24
- .map(({ value }) => value);
25
- };
26
- const computeFallbackFromContentRefs = async (contentPageData) => {
27
- const refs = (0, unique_1.unique)((0, json_ref_1.collectRef)(contentPageData));
28
- return (await Promise.allSettled(refs.map(async (_) => [
29
- _,
30
- (await ContentPageRepository_1.ContentPageRepository.inst.generatePage((0, url_1.joinPath)(BASE_DIR, _))),
31
- ])))
32
- .filter((_) => _.status === 'fulfilled')
33
- .map(({ value }) => value)
34
- .map(([ref, data]) => [ref, (0, json_ref_1.resolveJPointer)(data, ref)]);
35
- };
36
- //# sourceMappingURL=computeAPIFallback.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"computeAPIFallback.js","sourceRoot":"","sources":["../../../src/components/ContentPage/computeAPIFallback.ts"],"names":[],"mappings":";;AACA,iDAAiE;AACjE,+FAA4F;AAI5F,+CAA4C;AAC5C,yCAA2C;AAC3C,6DAA0D;AAI1D,MAAM,QAAQ,GAAG,SAAS,CAAC;AAEpB,MAAM,kBAAkB,GAAG,KAAK,EACrC,cAA8B,EAC9B,eAA+B,EACZ,EAAE;IACrB,OAAO,MAAM,CAAC,WAAW,CACvB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I,GAAG,IAAA,eAAM,EAAC,IAAA,qBAAU,EAAC,eAA2B,CAAC,CAAC,CAAC;IAE7D,OAAO,CACL,MAAM,OAAO,CAAC,UAAU,CACtB,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;QACpB,CAAC;QACD,CAAC,MAAM,6CAAqB,CAAC,IAAI,CAAC,YAAY,CAAC,IAAA,cAAQ,EAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAa;KACnF,CAAC,CACH,CACF;SACE,MAAM,CAAC,CAAC,CAAC,EAA8C,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC;SACnF,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,KAAK,CAAC;SACzB,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,IAAA,0BAAe,EAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- import { type FallbackMap } from '../../model/Fallback';
2
- export declare const loadModuleFallback: (blockName: string) => Promise<FallbackMap | undefined>;
@@ -1,36 +0,0 @@
1
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
2
- if (k2 === undefined) k2 = k;
3
- var desc = Object.getOwnPropertyDescriptor(m, k);
4
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5
- desc = { enumerable: true, get: function() { return m[k]; } };
6
- }
7
- Object.defineProperty(o, k2, desc);
8
- }) : (function(o, m, k, k2) {
9
- if (k2 === undefined) k2 = k;
10
- o[k2] = m[k];
11
- }));
12
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
13
- Object.defineProperty(o, "default", { enumerable: true, value: v });
14
- }) : function(o, v) {
15
- o["default"] = v;
16
- });
17
- var __importStar = (this && this.__importStar) || function (mod) {
18
- if (mod && mod.__esModule) return mod;
19
- var result = {};
20
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
21
- __setModuleDefault(result, mod);
22
- return result;
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.loadModuleFallback = void 0;
26
- const loadModuleFallback = async (blockName) => {
27
- try {
28
- const blockFallback = await Promise.resolve().then(() => __importStar(require(`../${blockName}/${blockName}.fallback`)));
29
- return blockFallback?.fallback ? await blockFallback.fallback() : undefined;
30
- }
31
- catch (error) {
32
- return undefined;
33
- }
34
- };
35
- exports.loadModuleFallback = loadModuleFallback;
36
- //# sourceMappingURL=loadModuleFallback.js.map