@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.
- package/bin/migration-scripts/{0.14.828.js → 0.14.832.js} +3 -1
- package/bundle/blocks.schema.json +1 -1
- package/bundle/bundle.umd.js +76 -103
- package/bundle/bundle.umd.min.js +1 -1
- package/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/bundle/external/useRouter.d.ts +2 -6
- package/bundle/model/Fallback.d.ts +0 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
- package/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
- package/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
- package/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/dist/components/Blocks.js +0 -6
- package/dist/components/Blocks.js.map +1 -1
- package/dist/components/Blocks.mobile.js +0 -4
- package/dist/components/Blocks.mobile.js.map +1 -1
- package/dist/components/GalleryLayout/GalleryLayout.js +11 -5
- package/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/dist/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/dist/components/GalleryLayout/useSortProductBlocks.js +21 -0
- package/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
- package/dist/components/Header/HeaderSecondaryMenu.js +2 -1
- package/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js +5 -5
- package/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/dist/components/TabsLayout/TabsLayout.js +13 -12
- package/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/dist/external/useRouter.d.ts +2 -6
- package/dist/external/useRouter.js +0 -3
- package/dist/external/useRouter.js.map +1 -1
- package/dist/hooks/useActiveRoute.js +1 -1
- package/dist/hooks/useActiveRoute.js.map +1 -1
- package/dist/model/Fallback.d.ts +0 -1
- package/dist/services/search/useSearch.js +18 -1
- package/dist/services/search/useSearch.js.map +1 -1
- package/dist/setup-fixture.js +0 -3
- package/dist/setup-fixture.js.map +1 -1
- package/lib/common.css +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
- package/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
- package/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/lib/components/Blocks.js +0 -6
- package/lib/components/Blocks.js.map +1 -1
- package/lib/components/Blocks.mobile.js +0 -4
- package/lib/components/Blocks.mobile.js.map +1 -1
- package/lib/components/GalleryLayout/GalleryLayout.js +11 -5
- package/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/lib/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/lib/components/GalleryLayout/useSortProductBlocks.js +18 -0
- package/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
- package/lib/components/Header/HeaderSecondaryMenu.js +2 -1
- package/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/lib/components/ProductBlock/ProductBlock.fixture.d.ts +0 -2
- package/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js +6 -6
- package/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/lib/components/TabsLayout/TabsLayout.js +13 -12
- package/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/lib/external/useRouter.d.ts +2 -6
- package/lib/external/useRouter.js +0 -3
- package/lib/external/useRouter.js.map +1 -1
- package/lib/hooks/useActiveRoute.js +1 -1
- package/lib/hooks/useActiveRoute.js.map +1 -1
- package/lib/model/Fallback.d.ts +0 -1
- package/lib/services/search/useSearch.js +18 -1
- package/lib/services/search/useSearch.js.map +1 -1
- package/lib/setup-fixture.js +0 -3
- package/lib/setup-fixture.js.map +1 -1
- package/mobile/bundle/bundle.umd.js +61 -65
- package/mobile/bundle/bundle.umd.min.js +1 -1
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/bundle/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/bundle/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/bundle/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/mobile/bundle/external/useRouter.d.ts +2 -6
- package/mobile/bundle/model/Fallback.d.ts +0 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js +5 -10
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js +7 -0
- package/mobile/dist/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js +4 -4
- package/mobile/dist/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/dist/components/Blocks.js +0 -4
- package/mobile/dist/components/Blocks.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js +11 -5
- package/mobile/dist/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js +21 -0
- package/mobile/dist/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js +2 -1
- package/mobile/dist/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/dist/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js +5 -5
- package/mobile/dist/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/dist/components/TabsLayout/TabsLayout.js +13 -12
- package/mobile/dist/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/dist/external/useRouter.d.ts +2 -6
- package/mobile/dist/external/useRouter.js +0 -3
- package/mobile/dist/external/useRouter.js.map +1 -1
- package/mobile/dist/hooks/useActiveRoute.js +1 -1
- package/mobile/dist/hooks/useActiveRoute.js.map +1 -1
- package/mobile/dist/model/Fallback.d.ts +0 -1
- package/mobile/dist/services/search/useSearch.js +18 -1
- package/mobile/dist/services/search/useSearch.js.map +1 -1
- package/mobile/dist/setup-fixture.js +0 -3
- package/mobile/dist/setup-fixture.js.map +1 -1
- package/mobile/lib/common.css +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.d.ts +0 -5
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js +1 -6
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadForm.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.d.ts +5 -0
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js +6 -1
- package/mobile/lib/components/ApplicationLeadForm/ApplicationLeadFormContent.js.map +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.d.ts +1 -2
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js +1 -1
- package/mobile/lib/components/ApplicationLeadForm/useInitApplicationLead.js.map +1 -1
- package/mobile/lib/components/Blocks.js +0 -4
- package/mobile/lib/components/Blocks.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js +11 -5
- package/mobile/lib/components/GalleryLayout/GalleryLayout.js.map +1 -1
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.d.ts +2 -0
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js +18 -0
- package/mobile/lib/components/GalleryLayout/useSortProductBlocks.js.map +1 -0
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js +2 -1
- package/mobile/lib/components/Header/HeaderSecondaryMenu.js.map +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js +1 -1
- package/mobile/lib/components/ProductBlock/ProductBlock.js.map +1 -1
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js +6 -6
- package/mobile/lib/components/StickyBottomMenu/BurgerMenuDialog.js.map +1 -1
- package/mobile/lib/components/TabsLayout/TabsLayout.js +13 -12
- package/mobile/lib/components/TabsLayout/TabsLayout.js.map +1 -1
- package/mobile/lib/external/useRouter.d.ts +2 -6
- package/mobile/lib/external/useRouter.js +0 -3
- package/mobile/lib/external/useRouter.js.map +1 -1
- package/mobile/lib/hooks/useActiveRoute.js +1 -1
- package/mobile/lib/hooks/useActiveRoute.js.map +1 -1
- package/mobile/lib/model/Fallback.d.ts +0 -1
- package/mobile/lib/services/search/useSearch.js +18 -1
- package/mobile/lib/services/search/useSearch.js.map +1 -1
- package/mobile/lib/setup-fixture.js +0 -3
- package/mobile/lib/setup-fixture.js.map +1 -1
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
- package/mobile/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
- package/mobile/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
- package/mobile/src/components/Blocks.ts +0 -4
- package/mobile/src/components/GalleryLayout/GalleryLayout.tsx +32 -19
- package/mobile/src/components/GalleryLayout/useSortProductBlocks.ts +25 -0
- package/mobile/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
- package/mobile/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/mobile/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/mobile/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +8 -6
- package/mobile/src/components/TabsLayout/TabsLayout.tsx +14 -12
- package/mobile/src/external/useRouter.ts +2 -9
- package/mobile/src/hooks/useActiveRoute.ts +1 -1
- package/mobile/src/model/Fallback.ts +0 -1
- package/mobile/src/services/search/useSearch.ts +24 -3
- package/mobile/src/setup-fixture.ts +0 -3
- package/package.json +1 -21
- package/src/components/ApplicationLeadForm/ApplicationLeadForm.tsx +5 -7
- package/src/components/ApplicationLeadForm/ApplicationLeadFormContent.ts +6 -0
- package/src/components/ApplicationLeadForm/useInitApplicationLead.ts +1 -2
- package/src/components/Blocks.mobile.ts +0 -4
- package/src/components/Blocks.ts +0 -6
- package/src/components/ContentPage/ContentPage.fixture.mobile.tsx +1 -4
- package/src/components/ContentPage/ContentPage.fixture.tsx +2 -7
- package/src/components/GalleryLayout/GalleryLayout.tsx +32 -19
- package/src/components/GalleryLayout/useSortProductBlocks.ts +25 -0
- package/src/components/Header/HeaderSecondaryMenu.tsx +12 -9
- package/src/components/ProductBlock/ProductBlock.example.json +1 -11
- package/src/components/ProductBlock/ProductBlock.fixture.tsx +0 -28
- package/src/components/ProductBlock/ProductBlock.tsx +0 -1
- package/src/components/StickyBottomMenu/BurgerMenuDialog.tsx +8 -6
- package/src/components/TabsLayout/TabsLayout.tsx +14 -12
- package/src/external/useRouter.ts +2 -9
- package/src/hooks/useActiveRoute.ts +1 -1
- package/src/icons/IconName.ts +4 -4
- package/src/model/Fallback.ts +0 -1
- package/src/services/search/useSearch.ts +24 -3
- package/src/setup-fixture.ts +0 -3
- package/bundle/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/bundle/components/ContentPage/mapSlot.d.ts +0 -2
- package/bundle/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/bundle/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
- package/bundle/components/ContentPage/normalizePage.d.ts +0 -3
- package/bundle/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/bundle/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/bundle/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/bundle/content-page-repository/TransformationOptions.d.ts +0 -4
- package/bundle/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/bundle/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/bundle/content-page-repository/extensions.d.ts +0 -3
- package/bundle/content-page-repository/index.d.ts +0 -3
- package/bundle/content-page-repository/mapJSON.d.ts +0 -1
- package/bundle/content-page-repository/mergePages.d.ts +0 -2
- package/bundle/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/bundle/content-page-repository/resizeImg.d.ts +0 -3
- package/bundle/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/bundle/content-page-repository/transformContentPage.d.ts +0 -4
- package/bundle/content-page-repository/transformDocument.d.ts +0 -3
- package/bundle/content-page-repository/transformHTML.d.ts +0 -1
- package/bundle/content-page-repository/transformImg.d.ts +0 -12
- package/bundle/content-page-repository/transformMarkdown.d.ts +0 -1
- package/bundle/content-page-repository/transformPicture.d.ts +0 -3
- package/dist/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/dist/components/ContentPage/computeAPIFallback.js +0 -36
- package/dist/components/ContentPage/computeAPIFallback.js.map +0 -1
- package/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/dist/components/ContentPage/loadModuleFallback.js +0 -36
- package/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/dist/components/ContentPage/mapSlot.d.ts +0 -2
- package/dist/components/ContentPage/mapSlot.js +0 -16
- package/dist/components/ContentPage/mapSlot.js.map +0 -1
- package/dist/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/dist/components/ContentPage/normalizeBlock.js +0 -15
- package/dist/components/ContentPage/normalizeBlock.js.map +0 -1
- package/dist/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
- package/dist/components/ContentPage/normalizeBlock.mobile.js +0 -18
- package/dist/components/ContentPage/normalizeBlock.mobile.js.map +0 -1
- package/dist/components/ContentPage/normalizePage.d.ts +0 -3
- package/dist/components/ContentPage/normalizePage.js +0 -6
- package/dist/components/ContentPage/normalizePage.js.map +0 -1
- package/dist/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/dist/components/ContentPage/toMobileBlock.js +0 -12
- package/dist/components/ContentPage/toMobileBlock.js.map +0 -1
- package/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
- package/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/dist/components/UnitBlock/UnitBlock.js +0 -11
- package/dist/components/UnitBlock/UnitBlock.js.map +0 -1
- package/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/dist/components/UnitBlock/UnitBlockContent.js +0 -2
- package/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/dist/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/dist/content-page-repository/ContentPageRepository.js +0 -31
- package/dist/content-page-repository/ContentPageRepository.js.map +0 -1
- package/dist/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/dist/content-page-repository/JSONDocContentBox.js +0 -39
- package/dist/content-page-repository/JSONDocContentBox.js.map +0 -1
- package/dist/content-page-repository/TransformationOptions.d.ts +0 -4
- package/dist/content-page-repository/TransformationOptions.js +0 -2
- package/dist/content-page-repository/TransformationOptions.js.map +0 -1
- package/dist/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/dist/content-page-repository/clearAttachmentHref.js +0 -6
- package/dist/content-page-repository/clearAttachmentHref.js.map +0 -1
- package/dist/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/dist/content-page-repository/computeImgOutputPath.js +0 -18
- package/dist/content-page-repository/computeImgOutputPath.js.map +0 -1
- package/dist/content-page-repository/extensions.d.ts +0 -3
- package/dist/content-page-repository/extensions.js +0 -18
- package/dist/content-page-repository/extensions.js.map +0 -1
- package/dist/content-page-repository/index.d.ts +0 -3
- package/dist/content-page-repository/index.js +0 -9
- package/dist/content-page-repository/index.js.map +0 -1
- package/dist/content-page-repository/mapJSON.d.ts +0 -1
- package/dist/content-page-repository/mapJSON.js +0 -26
- package/dist/content-page-repository/mapJSON.js.map +0 -1
- package/dist/content-page-repository/mergePages.d.ts +0 -2
- package/dist/content-page-repository/mergePages.js +0 -7
- package/dist/content-page-repository/mergePages.js.map +0 -1
- package/dist/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/dist/content-page-repository/replaceHeadingTags.js +0 -5
- package/dist/content-page-repository/replaceHeadingTags.js.map +0 -1
- package/dist/content-page-repository/resizeImg.d.ts +0 -3
- package/dist/content-page-repository/resizeImg.js +0 -19
- package/dist/content-page-repository/resizeImg.js.map +0 -1
- package/dist/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/dist/content-page-repository/transformAttachmentLink.js +0 -40
- package/dist/content-page-repository/transformAttachmentLink.js.map +0 -1
- package/dist/content-page-repository/transformContentPage.d.ts +0 -4
- package/dist/content-page-repository/transformContentPage.js +0 -78
- package/dist/content-page-repository/transformContentPage.js.map +0 -1
- package/dist/content-page-repository/transformDocument.d.ts +0 -3
- package/dist/content-page-repository/transformDocument.js +0 -38
- package/dist/content-page-repository/transformDocument.js.map +0 -1
- package/dist/content-page-repository/transformHTML.d.ts +0 -1
- package/dist/content-page-repository/transformHTML.js +0 -54
- package/dist/content-page-repository/transformHTML.js.map +0 -1
- package/dist/content-page-repository/transformImg.d.ts +0 -12
- package/dist/content-page-repository/transformImg.js +0 -51
- package/dist/content-page-repository/transformImg.js.map +0 -1
- package/dist/content-page-repository/transformMarkdown.d.ts +0 -1
- package/dist/content-page-repository/transformMarkdown.js +0 -18
- package/dist/content-page-repository/transformMarkdown.js.map +0 -1
- package/dist/content-page-repository/transformPicture.d.ts +0 -3
- package/dist/content-page-repository/transformPicture.js +0 -28
- package/dist/content-page-repository/transformPicture.js.map +0 -1
- package/lib/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/lib/components/ContentPage/computeAPIFallback.js +0 -33
- package/lib/components/ContentPage/computeAPIFallback.js.map +0 -1
- package/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/lib/components/ContentPage/loadModuleFallback.js +0 -10
- package/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/lib/components/ContentPage/mapSlot.d.ts +0 -2
- package/lib/components/ContentPage/mapSlot.js +0 -13
- package/lib/components/ContentPage/mapSlot.js.map +0 -1
- package/lib/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/lib/components/ContentPage/normalizeBlock.js +0 -12
- package/lib/components/ContentPage/normalizeBlock.js.map +0 -1
- package/lib/components/ContentPage/normalizeBlock.mobile.d.ts +0 -3
- package/lib/components/ContentPage/normalizeBlock.mobile.js +0 -15
- package/lib/components/ContentPage/normalizeBlock.mobile.js.map +0 -1
- package/lib/components/ContentPage/normalizePage.d.ts +0 -3
- package/lib/components/ContentPage/normalizePage.js +0 -3
- package/lib/components/ContentPage/normalizePage.js.map +0 -1
- package/lib/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/lib/components/ContentPage/toMobileBlock.js +0 -9
- package/lib/components/ContentPage/toMobileBlock.js.map +0 -1
- package/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/lib/components/InvestmentInfo/InvestmentInfo.fixture.d.ts +0 -7
- package/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
- package/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.d.ts +0 -5
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.fixture.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.fixture.mobile.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlock.js +0 -9
- package/lib/components/UnitBlock/UnitBlock.js.map +0 -1
- package/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/lib/components/UnitBlock/UnitBlockContent.js +0 -2
- package/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/lib/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/lib/content-page-repository/ContentPageRepository.js +0 -25
- package/lib/content-page-repository/ContentPageRepository.js.map +0 -1
- package/lib/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/lib/content-page-repository/JSONDocContentBox.js +0 -36
- package/lib/content-page-repository/JSONDocContentBox.js.map +0 -1
- package/lib/content-page-repository/TransformationOptions.d.ts +0 -4
- package/lib/content-page-repository/TransformationOptions.js +0 -2
- package/lib/content-page-repository/TransformationOptions.js.map +0 -1
- package/lib/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/lib/content-page-repository/clearAttachmentHref.js +0 -3
- package/lib/content-page-repository/clearAttachmentHref.js.map +0 -1
- package/lib/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/lib/content-page-repository/computeImgOutputPath.js +0 -12
- package/lib/content-page-repository/computeImgOutputPath.js.map +0 -1
- package/lib/content-page-repository/extensions.d.ts +0 -3
- package/lib/content-page-repository/extensions.js +0 -16
- package/lib/content-page-repository/extensions.js.map +0 -1
- package/lib/content-page-repository/index.d.ts +0 -3
- package/lib/content-page-repository/index.js +0 -4
- package/lib/content-page-repository/index.js.map +0 -1
- package/lib/content-page-repository/mapJSON.d.ts +0 -1
- package/lib/content-page-repository/mapJSON.js +0 -23
- package/lib/content-page-repository/mapJSON.js.map +0 -1
- package/lib/content-page-repository/mergePages.d.ts +0 -2
- package/lib/content-page-repository/mergePages.js +0 -4
- package/lib/content-page-repository/mergePages.js.map +0 -1
- package/lib/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/lib/content-page-repository/replaceHeadingTags.js +0 -2
- package/lib/content-page-repository/replaceHeadingTags.js.map +0 -1
- package/lib/content-page-repository/resizeImg.d.ts +0 -3
- package/lib/content-page-repository/resizeImg.js +0 -13
- package/lib/content-page-repository/resizeImg.js.map +0 -1
- package/lib/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/lib/content-page-repository/transformAttachmentLink.js +0 -34
- package/lib/content-page-repository/transformAttachmentLink.js.map +0 -1
- package/lib/content-page-repository/transformContentPage.d.ts +0 -4
- package/lib/content-page-repository/transformContentPage.js +0 -71
- package/lib/content-page-repository/transformContentPage.js.map +0 -1
- package/lib/content-page-repository/transformDocument.d.ts +0 -3
- package/lib/content-page-repository/transformDocument.js +0 -32
- package/lib/content-page-repository/transformDocument.js.map +0 -1
- package/lib/content-page-repository/transformHTML.d.ts +0 -1
- package/lib/content-page-repository/transformHTML.js +0 -25
- package/lib/content-page-repository/transformHTML.js.map +0 -1
- package/lib/content-page-repository/transformImg.d.ts +0 -12
- package/lib/content-page-repository/transformImg.js +0 -45
- package/lib/content-page-repository/transformImg.js.map +0 -1
- package/lib/content-page-repository/transformMarkdown.d.ts +0 -1
- package/lib/content-page-repository/transformMarkdown.js +0 -12
- package/lib/content-page-repository/transformMarkdown.js.map +0 -1
- package/lib/content-page-repository/transformPicture.d.ts +0 -3
- package/lib/content-page-repository/transformPicture.js +0 -22
- package/lib/content-page-repository/transformPicture.js.map +0 -1
- package/mobile/bundle/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/mobile/bundle/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/bundle/components/ContentPage/mapSlot.d.ts +0 -2
- package/mobile/bundle/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/mobile/bundle/components/ContentPage/normalizePage.d.ts +0 -3
- package/mobile/bundle/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/bundle/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/bundle/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/bundle/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/bundle/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/bundle/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/mobile/bundle/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/mobile/bundle/content-page-repository/TransformationOptions.d.ts +0 -4
- package/mobile/bundle/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/mobile/bundle/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/mobile/bundle/content-page-repository/extensions.d.ts +0 -3
- package/mobile/bundle/content-page-repository/index.d.ts +0 -3
- package/mobile/bundle/content-page-repository/mapJSON.d.ts +0 -1
- package/mobile/bundle/content-page-repository/mergePages.d.ts +0 -2
- package/mobile/bundle/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/mobile/bundle/content-page-repository/resizeImg.d.ts +0 -3
- package/mobile/bundle/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/mobile/bundle/content-page-repository/transformContentPage.d.ts +0 -4
- package/mobile/bundle/content-page-repository/transformDocument.d.ts +0 -3
- package/mobile/bundle/content-page-repository/transformHTML.d.ts +0 -1
- package/mobile/bundle/content-page-repository/transformImg.d.ts +0 -12
- package/mobile/bundle/content-page-repository/transformMarkdown.d.ts +0 -1
- package/mobile/bundle/content-page-repository/transformPicture.d.ts +0 -3
- package/mobile/dist/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/mobile/dist/components/ContentPage/computeAPIFallback.js +0 -36
- package/mobile/dist/components/ContentPage/computeAPIFallback.js.map +0 -1
- package/mobile/dist/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/dist/components/ContentPage/loadModuleFallback.js +0 -36
- package/mobile/dist/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/dist/components/ContentPage/mapSlot.d.ts +0 -2
- package/mobile/dist/components/ContentPage/mapSlot.js +0 -16
- package/mobile/dist/components/ContentPage/mapSlot.js.map +0 -1
- package/mobile/dist/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/mobile/dist/components/ContentPage/normalizeBlock.js +0 -18
- package/mobile/dist/components/ContentPage/normalizeBlock.js.map +0 -1
- package/mobile/dist/components/ContentPage/normalizePage.d.ts +0 -3
- package/mobile/dist/components/ContentPage/normalizePage.js +0 -6
- package/mobile/dist/components/ContentPage/normalizePage.js.map +0 -1
- package/mobile/dist/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/mobile/dist/components/ContentPage/toMobileBlock.js +0 -12
- package/mobile/dist/components/ContentPage/toMobileBlock.js.map +0 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js +0 -47
- package/mobile/dist/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/mobile/dist/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -26
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/mobile/dist/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/mobile/dist/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/dist/components/UnitBlock/UnitBlock.js +0 -11
- package/mobile/dist/components/UnitBlock/UnitBlock.js.map +0 -1
- package/mobile/dist/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/dist/components/UnitBlock/UnitBlockContent.js +0 -2
- package/mobile/dist/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/mobile/dist/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/mobile/dist/content-page-repository/ContentPageRepository.js +0 -31
- package/mobile/dist/content-page-repository/ContentPageRepository.js.map +0 -1
- package/mobile/dist/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/mobile/dist/content-page-repository/JSONDocContentBox.js +0 -39
- package/mobile/dist/content-page-repository/JSONDocContentBox.js.map +0 -1
- package/mobile/dist/content-page-repository/TransformationOptions.d.ts +0 -4
- package/mobile/dist/content-page-repository/TransformationOptions.js +0 -2
- package/mobile/dist/content-page-repository/TransformationOptions.js.map +0 -1
- package/mobile/dist/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/mobile/dist/content-page-repository/clearAttachmentHref.js +0 -6
- package/mobile/dist/content-page-repository/clearAttachmentHref.js.map +0 -1
- package/mobile/dist/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/mobile/dist/content-page-repository/computeImgOutputPath.js +0 -18
- package/mobile/dist/content-page-repository/computeImgOutputPath.js.map +0 -1
- package/mobile/dist/content-page-repository/extensions.d.ts +0 -3
- package/mobile/dist/content-page-repository/extensions.js +0 -18
- package/mobile/dist/content-page-repository/extensions.js.map +0 -1
- package/mobile/dist/content-page-repository/index.d.ts +0 -3
- package/mobile/dist/content-page-repository/index.js +0 -9
- package/mobile/dist/content-page-repository/index.js.map +0 -1
- package/mobile/dist/content-page-repository/mapJSON.d.ts +0 -1
- package/mobile/dist/content-page-repository/mapJSON.js +0 -26
- package/mobile/dist/content-page-repository/mapJSON.js.map +0 -1
- package/mobile/dist/content-page-repository/mergePages.d.ts +0 -2
- package/mobile/dist/content-page-repository/mergePages.js +0 -7
- package/mobile/dist/content-page-repository/mergePages.js.map +0 -1
- package/mobile/dist/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/mobile/dist/content-page-repository/replaceHeadingTags.js +0 -5
- package/mobile/dist/content-page-repository/replaceHeadingTags.js.map +0 -1
- package/mobile/dist/content-page-repository/resizeImg.d.ts +0 -3
- package/mobile/dist/content-page-repository/resizeImg.js +0 -19
- package/mobile/dist/content-page-repository/resizeImg.js.map +0 -1
- package/mobile/dist/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/mobile/dist/content-page-repository/transformAttachmentLink.js +0 -40
- package/mobile/dist/content-page-repository/transformAttachmentLink.js.map +0 -1
- package/mobile/dist/content-page-repository/transformContentPage.d.ts +0 -4
- package/mobile/dist/content-page-repository/transformContentPage.js +0 -78
- package/mobile/dist/content-page-repository/transformContentPage.js.map +0 -1
- package/mobile/dist/content-page-repository/transformDocument.d.ts +0 -3
- package/mobile/dist/content-page-repository/transformDocument.js +0 -38
- package/mobile/dist/content-page-repository/transformDocument.js.map +0 -1
- package/mobile/dist/content-page-repository/transformHTML.d.ts +0 -1
- package/mobile/dist/content-page-repository/transformHTML.js +0 -54
- package/mobile/dist/content-page-repository/transformHTML.js.map +0 -1
- package/mobile/dist/content-page-repository/transformImg.d.ts +0 -12
- package/mobile/dist/content-page-repository/transformImg.js +0 -51
- package/mobile/dist/content-page-repository/transformImg.js.map +0 -1
- package/mobile/dist/content-page-repository/transformMarkdown.d.ts +0 -1
- package/mobile/dist/content-page-repository/transformMarkdown.js +0 -18
- package/mobile/dist/content-page-repository/transformMarkdown.js.map +0 -1
- package/mobile/dist/content-page-repository/transformPicture.d.ts +0 -3
- package/mobile/dist/content-page-repository/transformPicture.js +0 -28
- package/mobile/dist/content-page-repository/transformPicture.js.map +0 -1
- package/mobile/lib/components/ContentPage/computeAPIFallback.d.ts +0 -4
- package/mobile/lib/components/ContentPage/computeAPIFallback.js +0 -33
- package/mobile/lib/components/ContentPage/computeAPIFallback.js.map +0 -1
- package/mobile/lib/components/ContentPage/loadModuleFallback.d.ts +0 -2
- package/mobile/lib/components/ContentPage/loadModuleFallback.js +0 -10
- package/mobile/lib/components/ContentPage/loadModuleFallback.js.map +0 -1
- package/mobile/lib/components/ContentPage/mapSlot.d.ts +0 -2
- package/mobile/lib/components/ContentPage/mapSlot.js +0 -13
- package/mobile/lib/components/ContentPage/mapSlot.js.map +0 -1
- package/mobile/lib/components/ContentPage/normalizeBlock.d.ts +0 -3
- package/mobile/lib/components/ContentPage/normalizeBlock.js +0 -15
- package/mobile/lib/components/ContentPage/normalizeBlock.js.map +0 -1
- package/mobile/lib/components/ContentPage/normalizePage.d.ts +0 -3
- package/mobile/lib/components/ContentPage/normalizePage.js +0 -3
- package/mobile/lib/components/ContentPage/normalizePage.js.map +0 -1
- package/mobile/lib/components/ContentPage/toMobileBlock.d.ts +0 -2
- package/mobile/lib/components/ContentPage/toMobileBlock.js +0 -9
- package/mobile/lib/components/ContentPage/toMobileBlock.js.map +0 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.d.ts +0 -5
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js +0 -45
- package/mobile/lib/components/InvestmentInfo/InvestmentInfo.js.map +0 -1
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.d.ts +0 -43
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js +0 -2
- package/mobile/lib/components/InvestmentInfo/InvestmentInfoContent.js.map +0 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.d.ts +0 -5
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js +0 -24
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.js.map +0 -1
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.d.ts +0 -18
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js +0 -2
- package/mobile/lib/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.js.map +0 -1
- package/mobile/lib/components/UnitBlock/UnitBlock.d.ts +0 -6
- package/mobile/lib/components/UnitBlock/UnitBlock.js +0 -9
- package/mobile/lib/components/UnitBlock/UnitBlock.js.map +0 -1
- package/mobile/lib/components/UnitBlock/UnitBlockContent.d.ts +0 -6
- package/mobile/lib/components/UnitBlock/UnitBlockContent.js +0 -2
- package/mobile/lib/components/UnitBlock/UnitBlockContent.js.map +0 -1
- package/mobile/lib/content-page-repository/ContentPageRepository.d.ts +0 -10
- package/mobile/lib/content-page-repository/ContentPageRepository.js +0 -25
- package/mobile/lib/content-page-repository/ContentPageRepository.js.map +0 -1
- package/mobile/lib/content-page-repository/JSONDocContentBox.d.ts +0 -8
- package/mobile/lib/content-page-repository/JSONDocContentBox.js +0 -36
- package/mobile/lib/content-page-repository/JSONDocContentBox.js.map +0 -1
- package/mobile/lib/content-page-repository/TransformationOptions.d.ts +0 -4
- package/mobile/lib/content-page-repository/TransformationOptions.js +0 -2
- package/mobile/lib/content-page-repository/TransformationOptions.js.map +0 -1
- package/mobile/lib/content-page-repository/clearAttachmentHref.d.ts +0 -2
- package/mobile/lib/content-page-repository/clearAttachmentHref.js +0 -3
- package/mobile/lib/content-page-repository/clearAttachmentHref.js.map +0 -1
- package/mobile/lib/content-page-repository/computeImgOutputPath.d.ts +0 -3
- package/mobile/lib/content-page-repository/computeImgOutputPath.js +0 -12
- package/mobile/lib/content-page-repository/computeImgOutputPath.js.map +0 -1
- package/mobile/lib/content-page-repository/extensions.d.ts +0 -3
- package/mobile/lib/content-page-repository/extensions.js +0 -16
- package/mobile/lib/content-page-repository/extensions.js.map +0 -1
- package/mobile/lib/content-page-repository/index.d.ts +0 -3
- package/mobile/lib/content-page-repository/index.js +0 -4
- package/mobile/lib/content-page-repository/index.js.map +0 -1
- package/mobile/lib/content-page-repository/mapJSON.d.ts +0 -1
- package/mobile/lib/content-page-repository/mapJSON.js +0 -23
- package/mobile/lib/content-page-repository/mapJSON.js.map +0 -1
- package/mobile/lib/content-page-repository/mergePages.d.ts +0 -2
- package/mobile/lib/content-page-repository/mergePages.js +0 -4
- package/mobile/lib/content-page-repository/mergePages.js.map +0 -1
- package/mobile/lib/content-page-repository/replaceHeadingTags.d.ts +0 -1
- package/mobile/lib/content-page-repository/replaceHeadingTags.js +0 -2
- package/mobile/lib/content-page-repository/replaceHeadingTags.js.map +0 -1
- package/mobile/lib/content-page-repository/resizeImg.d.ts +0 -3
- package/mobile/lib/content-page-repository/resizeImg.js +0 -13
- package/mobile/lib/content-page-repository/resizeImg.js.map +0 -1
- package/mobile/lib/content-page-repository/transformAttachmentLink.d.ts +0 -3
- package/mobile/lib/content-page-repository/transformAttachmentLink.js +0 -34
- package/mobile/lib/content-page-repository/transformAttachmentLink.js.map +0 -1
- package/mobile/lib/content-page-repository/transformContentPage.d.ts +0 -4
- package/mobile/lib/content-page-repository/transformContentPage.js +0 -71
- package/mobile/lib/content-page-repository/transformContentPage.js.map +0 -1
- package/mobile/lib/content-page-repository/transformDocument.d.ts +0 -3
- package/mobile/lib/content-page-repository/transformDocument.js +0 -32
- package/mobile/lib/content-page-repository/transformDocument.js.map +0 -1
- package/mobile/lib/content-page-repository/transformHTML.d.ts +0 -1
- package/mobile/lib/content-page-repository/transformHTML.js +0 -25
- package/mobile/lib/content-page-repository/transformHTML.js.map +0 -1
- package/mobile/lib/content-page-repository/transformImg.d.ts +0 -12
- package/mobile/lib/content-page-repository/transformImg.js +0 -45
- package/mobile/lib/content-page-repository/transformImg.js.map +0 -1
- package/mobile/lib/content-page-repository/transformMarkdown.d.ts +0 -1
- package/mobile/lib/content-page-repository/transformMarkdown.js +0 -12
- package/mobile/lib/content-page-repository/transformMarkdown.js.map +0 -1
- package/mobile/lib/content-page-repository/transformPicture.d.ts +0 -3
- package/mobile/lib/content-page-repository/transformPicture.js +0 -22
- package/mobile/lib/content-page-repository/transformPicture.js.map +0 -1
- package/mobile/src/components/ContentPage/computeAPIFallback.ts +0 -67
- package/mobile/src/components/ContentPage/loadModuleFallback.ts +0 -11
- package/mobile/src/components/ContentPage/mapSlot.ts +0 -18
- package/mobile/src/components/ContentPage/normalizeBlock.ts +0 -25
- package/mobile/src/components/ContentPage/normalizePage.ts +0 -8
- package/mobile/src/components/ContentPage/toMobileBlock.ts +0 -11
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
- package/mobile/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
- package/mobile/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
- package/mobile/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
- package/mobile/src/components/UnitBlock/UnitBlock.example.json +0 -9
- package/mobile/src/components/UnitBlock/UnitBlock.tsx +0 -17
- package/mobile/src/components/UnitBlock/UnitBlock.ui.json +0 -1
- package/mobile/src/components/UnitBlock/UnitBlockContent.ts +0 -7
- package/mobile/src/content-page-repository/ContentPageRepository.ts +0 -31
- package/mobile/src/content-page-repository/JSONDocContentBox.ts +0 -56
- package/mobile/src/content-page-repository/TransformationOptions.ts +0 -4
- package/mobile/src/content-page-repository/clearAttachmentHref.ts +0 -3
- package/mobile/src/content-page-repository/computeImgOutputPath.ts +0 -21
- package/mobile/src/content-page-repository/extensions.ts +0 -17
- package/mobile/src/content-page-repository/index.ts +0 -3
- package/mobile/src/content-page-repository/mapJSON.ts +0 -30
- package/mobile/src/content-page-repository/mergePages.ts +0 -8
- package/mobile/src/content-page-repository/replaceHeadingTags.ts +0 -2
- package/mobile/src/content-page-repository/resizeImg.ts +0 -17
- package/mobile/src/content-page-repository/transformAttachmentLink.ts +0 -46
- package/mobile/src/content-page-repository/transformContentPage.ts +0 -102
- package/mobile/src/content-page-repository/transformDocument.ts +0 -43
- package/mobile/src/content-page-repository/transformHTML.ts +0 -28
- package/mobile/src/content-page-repository/transformImg.ts +0 -81
- package/mobile/src/content-page-repository/transformMarkdown.ts +0 -14
- package/mobile/src/content-page-repository/transformPicture.ts +0 -35
- package/src/components/ContentPage/computeAPIFallback.ts +0 -67
- package/src/components/ContentPage/loadModuleFallback.ts +0 -11
- package/src/components/ContentPage/mapSlot.ts +0 -18
- package/src/components/ContentPage/normalizeBlock.mobile.ts +0 -25
- package/src/components/ContentPage/normalizeBlock.ts +0 -21
- package/src/components/ContentPage/normalizePage.ts +0 -8
- package/src/components/ContentPage/toMobileBlock.ts +0 -11
- package/src/components/InvestmentInfo/InvestmentInfo.example.json +0 -53
- package/src/components/InvestmentInfo/InvestmentInfo.fixture.tsx +0 -109
- package/src/components/InvestmentInfo/InvestmentInfo.tsx +0 -131
- package/src/components/InvestmentInfo/InvestmentInfo.ui.json +0 -13
- package/src/components/InvestmentInfo/InvestmentInfoContent.ts +0 -51
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.example.json +0 -14
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.mobile.tsx +0 -47
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.fixture.tsx +0 -47
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx +0 -94
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.ui.json +0 -24
- package/src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts +0 -22
- package/src/components/UnitBlock/UnitBlock.example.json +0 -9
- package/src/components/UnitBlock/UnitBlock.fixture.mobile.tsx +0 -27
- package/src/components/UnitBlock/UnitBlock.fixture.tsx +0 -27
- package/src/components/UnitBlock/UnitBlock.tsx +0 -17
- package/src/components/UnitBlock/UnitBlock.ui.json +0 -1
- package/src/components/UnitBlock/UnitBlockContent.ts +0 -7
- package/src/content-page-repository/ContentPageRepository.ts +0 -31
- package/src/content-page-repository/JSONDocContentBox.ts +0 -56
- package/src/content-page-repository/TransformationOptions.ts +0 -4
- package/src/content-page-repository/clearAttachmentHref.ts +0 -3
- package/src/content-page-repository/computeImgOutputPath.ts +0 -21
- package/src/content-page-repository/extensions.ts +0 -17
- package/src/content-page-repository/index.ts +0 -3
- package/src/content-page-repository/mapJSON.ts +0 -30
- package/src/content-page-repository/mergePages.ts +0 -8
- package/src/content-page-repository/replaceHeadingTags.ts +0 -2
- package/src/content-page-repository/resizeImg.ts +0 -17
- package/src/content-page-repository/transformAttachmentLink.ts +0 -46
- package/src/content-page-repository/transformContentPage.ts +0 -102
- package/src/content-page-repository/transformDocument.ts +0 -43
- package/src/content-page-repository/transformHTML.ts +0 -28
- package/src/content-page-repository/transformImg.ts +0 -81
- package/src/content-page-repository/transformMarkdown.ts +0 -14
- package/src/content-page-repository/transformPicture.ts +0 -35
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function toMobileBlock(block = {}) {
|
|
2
|
-
const { mobile, ...desktop } = block;
|
|
3
|
-
return {
|
|
4
|
-
...desktop,
|
|
5
|
-
...(mobile?.style ? { style: mobile.style } : {}),
|
|
6
|
-
...(mobile?.content ? { content: mobile.content } : {}),
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=toMobileBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toMobileBlock.js","sourceRoot":"","sources":["../../../src/components/ContentPage/toMobileBlock.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,aAAa,CAAC,QAAkB,EAAE;IAChD,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC;IAErC,OAAO;QACL,GAAG,OAAO;QACV,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACxD,CAAC;AACJ,CAAC"}
|
|
@@ -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,45 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
5
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
6
|
-
import { joinList } from '../../utils/joinList.js';
|
|
7
|
-
const investmentCellColorMap = {
|
|
8
|
-
yellow: 'bg-yellow',
|
|
9
|
-
green: 'bg-green',
|
|
10
|
-
'green-light': 'bg-green-light',
|
|
11
|
-
'green-dark': 'bg-green-dark',
|
|
12
|
-
};
|
|
13
|
-
const investmentCellSizeMap = {
|
|
14
|
-
XS: 'h-10',
|
|
15
|
-
S: 'h-16',
|
|
16
|
-
M: 'h-24',
|
|
17
|
-
L: 'h-32',
|
|
18
|
-
XL: 'h-52',
|
|
19
|
-
};
|
|
20
|
-
export const InvestmentInfo = JSX((props) => {
|
|
21
|
-
const { className = '', __html, isDotted, investmentZeroColumn, investmentColumns, ...rest } = props;
|
|
22
|
-
const columns = investmentColumns ? [...investmentColumns] : [];
|
|
23
|
-
if (investmentZeroColumn) {
|
|
24
|
-
columns.unshift(investmentZeroColumn);
|
|
25
|
-
}
|
|
26
|
-
return (_jsx(BlockWrapper, { className: className, defaultPadding: "p-4xl", ...rest, children: _jsxs("div", { className: "container text-m font-light space-y-4xl", children: [columns?.length ? (_jsxs("div", { children: [_jsxs("div", { className: "flex items-end relative pl-3xl pr-lg text-white", children: [joinList(_jsx("div", { className: "w-px h-4 bg-gray" }))(columns.map(renderInvestmentColumn)), _jsx("div", { className: "absolute right-3xl w-px h-4 bg-gray" })] }), _jsx("div", { className: "border-t border-gray -mt-xs mx-3xl" }), _jsx("div", { className: "flex justify-between text-primary-text mt-s -mx-5xl", children: columns.map(renderInvestmentColumnTitle) })] })) : null, __html ? (_jsx("div", { className: "max-w-2xl font-light text-base", children: _jsx(RichText, { __html: __html, isDotted: isDotted, itemSize: "list-s" }) })) : null] }) }));
|
|
27
|
-
});
|
|
28
|
-
const renderInvestmentColumn = (column, i, arr) => {
|
|
29
|
-
const isSecondColumn = i === 1;
|
|
30
|
-
const isLastColumn = i === arr.length - 1;
|
|
31
|
-
const reversedCells = column.cells?.reverse() || [];
|
|
32
|
-
return (_jsx("div", { className: `${getColumnClasses(isSecondColumn, isLastColumn, column.cells)}`, children: reversedCells.length ? (_jsx("div", { className: `w-full ${isLastColumn ? 'border-4 border-green-more-dark p-1.5 min-w-72' : ''}`, children: reversedCells.map(renderInvestmentCell) })) : null }, `column_${i}`));
|
|
33
|
-
};
|
|
34
|
-
const getColumnClasses = (isSecondColumn, isLastColumn, cells = []) => [
|
|
35
|
-
cells.length ? 'flex-1' : 'flex-0',
|
|
36
|
-
cells.length && !isSecondColumn && !isLastColumn ? 'pl-s' : '',
|
|
37
|
-
cells.length && !isLastColumn ? 'pr-s pb-3xl' : 'pb-xl',
|
|
38
|
-
].join(' ');
|
|
39
|
-
const renderInvestmentCell = (cell, i) => {
|
|
40
|
-
const cellSize = cell.cellSize || 'XS';
|
|
41
|
-
const cellColor = cell.cellColor || 'green';
|
|
42
|
-
return cell.text ? (_jsx("div", { className: `flex-1 flex items-center justify-center relative py-xs ${investmentCellSizeMap[cellSize]} ${investmentCellColorMap[cellColor]} ${cellSize === 'XS' ? 'px-s' : 'px-5xl'}`, children: _jsx(Text, { align: "text-center", children: cell.text }) }, `cell_${i}`)) : null;
|
|
43
|
-
};
|
|
44
|
-
const renderInvestmentColumnTitle = (column, i) => column?.title ? (_jsx("div", { className: "flex-1 max-w-44 text-center px-xs last:pr-4xl last:max-w-52", children: column.title }, `title_${i}`)) : null;
|
|
45
|
-
//# sourceMappingURL=InvestmentInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InvestmentInfo.js","sourceRoot":"","sources":["../../../src/components/InvestmentInfo/InvestmentInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAE9C,OAAO,EA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C,CAAC,aAAa,CAAC,CAAC,CAAC,OAAO;CACxD,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEd,MAAM,oBAAoB,GAAG,CAAC,IAAoB,EAAE,CAAS,EAAE,EAAE;IAC/D,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC;IACvC,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,IAAI,OAAO,CAAC;IAE5C,OAAO,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CACjB,cAEE,SAAS,EAAE,0DACT,qBAAqB,CAAC,QAAQ,CAChC,IAAI,sBAAsB,CAAC,SAAS,CAAC,IAAI,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,YAEhF,KAAC,IAAI,IAAC,KAAK,EAAC,aAAa,YAAE,IAAI,CAAC,IAAI,GAAQ,IALvC,QAAQ,CAAC,EAAE,CAMZ,CACP,CAAC,CAAC,CAAC,IAAI,CAAC;AACX,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,CAAC,MAA+C,EAAE,CAAS,EAAE,EAAE,CACjG,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC,CACd,cAAwB,SAAS,EAAC,6DAA6D,YAC5F,MAAM,CAAC,KAAK,IADL,SAAS,CAAC,EAAE,CAEhB,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InvestmentInfoContent.js","sourceRoot":"","sources":["../../../src/components/InvestmentInfo/InvestmentInfoContent.ts"],"names":[],"mappings":""}
|
|
@@ -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,24 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { Heading } from '../../ui-kit/Heading/Heading.js';
|
|
5
|
-
import { Icon } from '../../ui-kit/Icon/Icon.js';
|
|
6
|
-
import { Img } from '../../ui-kit/Img/Img.js';
|
|
7
|
-
import { renderButtonsSection } from '../../ui-kit/LinkButton/renderButtonsSection.js';
|
|
8
|
-
import { RichText } from '../../ui-kit/RichText/RichText.js';
|
|
9
|
-
import { Text } from '../../ui-kit/Text/Text.js';
|
|
10
|
-
import { isIcon } from '../../utils/isIcon.js';
|
|
11
|
-
import { style } from '../../utils/style.js';
|
|
12
|
-
export const RepresentativeOfficeInfo = JSX(({ address, email, telephone, button, className = '', __html, richVersion, icon, title, version = 'primary', ...rest }) => (_jsxs(BlockWrapper, { className: style('box-border text-left space-y-s', className), version: version, ...rest, children: [_jsxs("div", { className: "w-full flex justify-between flex-row-reverse", children: [isIcon(icon) ? (_jsx("div", { className: 'w-10 h-7 sm:w-24 sm:h-16', children: _jsx(Img, { image: icon }) })) : null, title ? _jsx(Heading, { headingType: "h3", as: "h3", title: title }) : null] }), _jsxs("div", { className: "w-full space-y-m", children: [__html ? renderDescriptionBlock({ __html, richVersion }) : null, renderBlock({
|
|
13
|
-
label: 'Адрес',
|
|
14
|
-
data: address,
|
|
15
|
-
iconName: 'GeolocationIcon',
|
|
16
|
-
}), renderBlock({ label: 'Телефон(факс)', data: telephone, iconName: 'PhoneIcon' }), renderBlock({
|
|
17
|
-
label: 'E-mail',
|
|
18
|
-
data: email,
|
|
19
|
-
iconName: 'MailIcon',
|
|
20
|
-
dataColor: 'text-primary-main',
|
|
21
|
-
}), button?.text ? renderButtonsSection([button]) : null] })] })));
|
|
22
|
-
const renderDescriptionBlock = (props) => (_jsx("div", { className: "border-b border-main-divider pb-lg", children: _jsx(RichText, { ...props, itemSize: "list-s" }) }));
|
|
23
|
-
const renderBlock = ({ label, data, iconName, dataColor = '' }) => data ? (_jsxs("div", { className: "flex gap-s", children: [_jsx(Icon, { iconVersion: "black", name: iconName, width: "24", height: "24" }), _jsxs("div", { className: "flex flex-col gap-2xs", children: [_jsx(Text, { size: "text-m", font: "font-light", color: "text-secondary-text", children: label }), _jsx(Text, { size: "text-xl", color: dataColor, children: data })] })] })) : null;
|
|
24
|
-
//# sourceMappingURL=RepresentativeOfficeInfo.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepresentativeOfficeInfo.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAC;AAC3C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AACpF,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAG9C,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAO1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CACzC,CAAC,EACC,OAAO,EACP,KAAK,EACL,SAAS,EACT,MAAM,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AC,KAAoB,EAAE,EAAE,CAAC,CACvD,cAAK,SAAS,EAAC,oCAAoC,YACjD,KAAC,QAAQ,OAAK,KAAK,EAAE,QAAQ,EAAC,QAAQ,GAAG,GACrC,CACP,CAAC;AASF,MAAM,WAAW,GAAG,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,GAAG,EAAE,EAAoB,EAAE,EAAE,CAClF,IAAI,CAAC,CAAC,CAAC,CACL,eAAK,SAAS,EAAC,YAAY,aACzB,KAAC,IAAI,IAAC,WAAW,EAAC,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,GAAG,EACnE,eAAK,SAAS,EAAC,uBAAuB,aACpC,KAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAC,YAAY,EAAC,KAAK,EAAC,qBAAqB,YAC9D,KAAK,GACD,EACP,KAAC,IAAI,IAAC,IAAI,EAAC,SAAS,EAAC,KAAK,EAAE,SAAS,YAClC,IAAI,GACA,IACH,IACF,CACP,CAAC,CAAC,CAAC,IAAI,CAAC"}
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RepresentativeOfficeInfoContent.js","sourceRoot":"","sources":["../../../src/components/RepresentativeOfficeInfo/RepresentativeOfficeInfoContent.ts"],"names":[],"mappings":""}
|
|
@@ -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,9 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "@redneckz/uni-jsx/jsx-runtime";
|
|
2
|
-
import { JSX } from '@redneckz/uni-jsx';
|
|
3
|
-
import { BlockWrapper } from '../../ui-kit/BlockWrapper.js';
|
|
4
|
-
import { Unit } from '../../ui-kit/Unit/Unit.js';
|
|
5
|
-
export const UnitBlock = JSX((props) => {
|
|
6
|
-
const { prefix, unit, suffix, ...rest } = props;
|
|
7
|
-
return (_jsx(BlockWrapper, { defaultPadding: "p-0", ...rest, children: _jsx(Unit, { prefix: prefix, unit: unit, suffix: suffix }) }));
|
|
8
|
-
});
|
|
9
|
-
//# sourceMappingURL=UnitBlock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnitBlock.js","sourceRoot":"","sources":["../../../src/components/UnitBlock/UnitBlock.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAM9C,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAiB,CAAC,KAAK,EAAE,EAAE;IACrD,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC;IAEhD,OAAO,CACL,KAAC,YAAY,IAAC,cAAc,EAAC,KAAK,KAAK,IAAI,YACzC,KAAC,IAAI,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,GAAI,GACvC,CAChB,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UnitBlockContent.js","sourceRoot":"","sources":["../../../src/components/UnitBlock/UnitBlockContent.ts"],"names":[],"mappings":""}
|
|
@@ -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,25 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import { glob } from 'glob';
|
|
3
|
-
import util from 'util';
|
|
4
|
-
import { generatedPagePath, transformContentPage } from './transformContentPage.js';
|
|
5
|
-
const readFile = util.promisify(fs.readFile);
|
|
6
|
-
export class ContentPageRepository {
|
|
7
|
-
options;
|
|
8
|
-
static inst = new ContentPageRepository();
|
|
9
|
-
constructor(options = {
|
|
10
|
-
contentDir: 'content',
|
|
11
|
-
publicDir: 'public',
|
|
12
|
-
}) {
|
|
13
|
-
this.options = options;
|
|
14
|
-
}
|
|
15
|
-
listAllContentPages() {
|
|
16
|
-
return glob(`${this.options.contentDir}/**/*.page.json`, { posix: true });
|
|
17
|
-
}
|
|
18
|
-
async readPage(filePath) {
|
|
19
|
-
return JSON.parse(await readFile(generatedPagePath(filePath), 'utf-8'));
|
|
20
|
-
}
|
|
21
|
-
generatePage(filePath) {
|
|
22
|
-
return transformContentPage(filePath, this.options);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
//# sourceMappingURL=ContentPageRepository.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ContentPageRepository.js","sourceRoot":"","sources":["../../src/content-page-repository/ContentPageRepository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,IAAI,MAAM,MAAM,CAAC;AAGxB,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEjF,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAM,OAAO,qBAAqB;IAIb;IAHZ,MAAM,CAAU,IAAI,GAAG,IAAI,qBAAqB,EAAE,CAAC;IAE1D,YACmB,UAAiC;QAChD,UAAU,EAAE,SAAS;QACrB,SAAS,EAAE,QAAQ;KACpB;QAHgB,YAAO,GAAP,OAAO,CAGvB;IACA,CAAC;IAEJ,mBAAmB;QACjB,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,iBAAiB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,QAAgB;QAC7B,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,QAAQ,CAAC,iBAAiB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,CAAC;IAED,YAAY,CAAC,QAAgB;QAC3B,OAAO,oBAAoB,CAAC,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC"}
|
|
@@ -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,36 +0,0 @@
|
|
|
1
|
-
import { isJSONArray, isJSONRecord, JSONBoxDefault, } from '@redneckz/json-op';
|
|
2
|
-
const isAtomicArray = (node) => isJSONArray(node) && !node.some(nodeId);
|
|
3
|
-
const ID_PREFIX = 'id:';
|
|
4
|
-
const nodeId = (node) => isJSONRecord(node) && '__id' in node ? node.__id : undefined;
|
|
5
|
-
const keyToId = (p) => typeof p === 'string' && p.startsWith(ID_PREFIX) ? p.substring(ID_PREFIX.length) : undefined;
|
|
6
|
-
const findIndexById = (_, id) => id && isJSONArray(_) ? _.findIndex((node) => id === nodeId(node)) : -1;
|
|
7
|
-
export class JSONDocContentBox extends JSONBoxDefault {
|
|
8
|
-
size() {
|
|
9
|
-
return isAtomicArray(this._) ? 0 : super.size();
|
|
10
|
-
}
|
|
11
|
-
entries() {
|
|
12
|
-
if (isAtomicArray(this._)) {
|
|
13
|
-
return [];
|
|
14
|
-
}
|
|
15
|
-
else if (isJSONArray(this._)) {
|
|
16
|
-
return this._.map((node, i) => [
|
|
17
|
-
nodeId(node) ? `${ID_PREFIX}${nodeId(node)}` : i,
|
|
18
|
-
new JSONDocContentBox(node),
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
return super.entries();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
get(p) {
|
|
26
|
-
const id = keyToId(p);
|
|
27
|
-
return super.get(id ? findIndexById(this._, id) : p);
|
|
28
|
-
}
|
|
29
|
-
set(p, child) {
|
|
30
|
-
const id = keyToId(p);
|
|
31
|
-
const index = findIndexById(this._, id);
|
|
32
|
-
const adjustedIndex = index >= 0 ? index : this.size();
|
|
33
|
-
return super.set(id ? adjustedIndex : p, id ? { ...child, __id: id } : child);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=JSONDocContentBox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"JSONDocContentBox.js","sourceRoot":"","sources":["../../src/content-page-repository/JSONDocContentBox.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,cAAc,GAIf,MAAM,mBAAmB,CAAC;AAG3B,MAAM,aAAa,GAAG,CAAC,IAA0B,EAAW,EAAE,CAC5D,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAE1C,MAAM,SAAS,GAAG,KAAK,CAAC;AAExB,MAAM,MAAM,GAAG,CAAC,IAA0B,EAAsB,EAAE,CAChE,YAAY,CAAC,IAAI,CAAC,IAAI,MAAM,IAAI,IAAI,CAAC,CAAC,CAAE,IAAI,CAAC,IAAe,CAAC,CAAC,CAAC,SAAS,CAAC;AAE3E,MAAM,OAAO,GAAG,CAAC,CAA8B,EAAsB,EAAE,CACrE,OAAO,CAAC,KAAK,QAAQ,IAAI,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAE/F,MAAM,aAAa,GAAG,CAAC,CAAuB,EAAE,EAAsB,EAAe,EAAE,CACrF,EAAE,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC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AC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAEvD,OAAO,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,GAAI,KAAoB,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAChG,CAAC;CACF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TransformationOptions.js","sourceRoot":"","sources":["../../src/content-page-repository/TransformationOptions.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clearAttachmentHref.js","sourceRoot":"","sources":["../../src/content-page-repository/clearAttachmentHref.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG,SAAS,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,IAAY,EAAU,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -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,12 +0,0 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
export function computeImgOutputPath(imgInputPath, { contentDir, publicDir, format, size }, withoutTransform = false) {
|
|
3
|
-
const imgRelativePath = path.relative(contentDir, imgInputPath);
|
|
4
|
-
const imgDir = path.dirname(imgRelativePath);
|
|
5
|
-
const inputExt = path.extname(imgRelativePath);
|
|
6
|
-
const fileName = path.basename(imgRelativePath, inputExt);
|
|
7
|
-
const suffixParts = [size?.width, size?.height].filter(Boolean);
|
|
8
|
-
const suffix = suffixParts.length && !withoutTransform ? `-${suffixParts.join('-')}` : '';
|
|
9
|
-
const ext = format && !withoutTransform ? `.${format}` : inputExt;
|
|
10
|
-
return path.join(publicDir, imgDir, `${fileName}${suffix}${ext}`);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=computeImgOutputPath.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"computeImgOutputPath.js","sourceRoot":"","sources":["../../src/content-page-repository/computeImgOutputPath.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AAIxB,MAAM,UAAU,oBAAoB,CAClC,YAAoB,EACpB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,EAAqC,EAC1E,gBAAgB,GAAG,KAAK;IAExB,MAAM,eAAe,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAEhE,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAE7C,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;IAC/C,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,eAAe,EAAE,QAAQ,CAAC,CAAC;IAC1D,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAChE,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC1F,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;IAElE,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,QAAQ,GAAG,MAAM,GAAG,GAAG,EAAE,CAAC,CAAC;AACpE,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const OUTPUT_SUFFIX = '.static';
|
|
2
|
-
export const DOCUMENT_EXT_LIST = [
|
|
3
|
-
'.txt',
|
|
4
|
-
'.doc',
|
|
5
|
-
'.docx',
|
|
6
|
-
'.xls',
|
|
7
|
-
'.xlsx',
|
|
8
|
-
'.xlsb',
|
|
9
|
-
'.ppt',
|
|
10
|
-
'.pptx',
|
|
11
|
-
'.pdf',
|
|
12
|
-
'.zip',
|
|
13
|
-
'.7z',
|
|
14
|
-
];
|
|
15
|
-
export const IMAGE_EXT_LIST = ['.jpeg', '.jpg', '.png', '.gif', '.webp', '.heif', '.avif', '.svg'];
|
|
16
|
-
//# sourceMappingURL=extensions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"extensions.js","sourceRoot":"","sources":["../../src/content-page-repository/extensions.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,SAAS,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,MAAM;IACN,MAAM;IACN,OAAO;IACP,MAAM;IACN,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,MAAM;IACN,MAAM;IACN,KAAK;CACN,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/content-page-repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC"}
|
|
@@ -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,23 +0,0 @@
|
|
|
1
|
-
export async function mapJSON(data, mapper, keyParts = []) {
|
|
2
|
-
if (data === null || data === undefined) {
|
|
3
|
-
return data;
|
|
4
|
-
}
|
|
5
|
-
const mappedData = await mapper(data, keyParts);
|
|
6
|
-
if (mappedData !== data) {
|
|
7
|
-
return mappedData;
|
|
8
|
-
}
|
|
9
|
-
if (Array.isArray(data)) {
|
|
10
|
-
const values = data.map((_, i) => mapJSON(_, mapper, [String(i)].concat(keyParts)));
|
|
11
|
-
return Promise.all(values);
|
|
12
|
-
}
|
|
13
|
-
else if (typeof data === 'object' && data.toString() === '[object Object]') {
|
|
14
|
-
const subKeys = Object.keys(data);
|
|
15
|
-
const values = subKeys.map((k) => mapJSON(data[k], mapper, [k].concat(keyParts)));
|
|
16
|
-
const pairs = (await Promise.all(values)).map((_, i) => ({
|
|
17
|
-
[subKeys[i]]: _,
|
|
18
|
-
}));
|
|
19
|
-
return Object.assign({}, ...pairs);
|
|
20
|
-
}
|
|
21
|
-
return mapper(data, keyParts);
|
|
22
|
-
}
|
|
23
|
-
//# sourceMappingURL=mapJSON.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mapJSON.js","sourceRoot":"","sources":["../../src/content-page-repository/mapJSON.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,IAAO,EACP,MAAgE,EAChE,WAAqB,EAAE;IAEvB,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS,EAAE;QACvC,OAAO,IAAI,CAAC;KACb;IAED,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAChD,IAAI,UAAU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AK,EAAE,KAAK,EAAmB,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,IAAgB,EAAE,KAAiB,EAAc,EAAE,CAC5E,KAAK,CACH,IAAI,iBAAiB,CAAC,IAAkB,CAAC,EACzC,KAAK,CAAC,IAAI,iBAAiB,CAAC,KAAmB,CAAC,CAAC,CACpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const replaceHeadingTags: (html: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"replaceHeadingTags.js","sourceRoot":"","sources":["../../src/content-page-repository/replaceHeadingTags.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAY,EAAE,EAAE,CACjD,IAAI,CAAC,UAAU,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import sharp from 'sharp';
|
|
2
|
-
export const resizeImg = (size, options) => (chain) => size
|
|
3
|
-
? chain.resize(size.width || null, size.height || null, {
|
|
4
|
-
/*
|
|
5
|
-
* Editor behaviour with one dimension present: resize by given dimension maintaining aspect ratio. (fit: contain)
|
|
6
|
-
* With two dimensions present: resize trying to fill given dimensions (fit: fill)
|
|
7
|
-
*/
|
|
8
|
-
fit: size.width && size.height ? sharp.fit.fill : sharp.fit.contain,
|
|
9
|
-
background: { r: 0, g: 0, b: 0, alpha: 0 },
|
|
10
|
-
...options,
|
|
11
|
-
})
|
|
12
|
-
: chain;
|
|
13
|
-
//# sourceMappingURL=resizeImg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resizeImg.js","sourceRoot":"","sources":["../../src/content-page-repository/resizeImg.ts"],"names":[],"mappings":"AAAA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAG9D,MAAM,CAAC,MAAM,SAAS,GACpB,CAAC,IAAyB,EAAE,OAAuB,EAAE,EAAE,CACvD,CAAC,KAAY,EAAS,EAAE,CACtB,IAAI;IACF,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE,IAAI,CAAC,MAAM,IAAI,IAAI,EAAE;QACpD;;;WAGG;QACH,GAAG,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO;QACnE,UAAU,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE;QAC1C,GAAG,OAAO;KACX,CAAC;IACJ,CAAC,CAAC,KAAK,CAAC"}
|
|
@@ -1,34 +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
|
-
import { clearAttachmentHref } from './clearAttachmentHref.js';
|
|
6
|
-
const mkdir = util.promisify(fs.mkdir);
|
|
7
|
-
const copyFile = util.promisify(fs.copyFile);
|
|
8
|
-
export async function transformAttachmentLink(link, pagePath, options) {
|
|
9
|
-
if (!link?.href) {
|
|
10
|
-
return link;
|
|
11
|
-
}
|
|
12
|
-
try {
|
|
13
|
-
return {
|
|
14
|
-
...link,
|
|
15
|
-
href: await transformHref(clearAttachmentHref(link.href), options),
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
catch (e) {
|
|
19
|
-
console.info(`No "${link.href}" attachment found on page: "${pagePath}"`);
|
|
20
|
-
return link;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
async function transformHref(input, options) {
|
|
24
|
-
if (isUUID(input)) {
|
|
25
|
-
return input;
|
|
26
|
-
}
|
|
27
|
-
const { contentDir, publicDir } = options;
|
|
28
|
-
const docRelativePath = path.relative(contentDir, input);
|
|
29
|
-
const output = path.join(publicDir, docRelativePath);
|
|
30
|
-
await mkdir(path.dirname(output), { recursive: true });
|
|
31
|
-
await copyFile(input, output);
|
|
32
|
-
return path.join('/', docRelativePath);
|
|
33
|
-
}
|
|
34
|
-
//# sourceMappingURL=transformAttachmentLink.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transformAttachmentLink.js","sourceRoot":"","sources":["../../src/content-page-repository/transformAttachmentLink.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;AACzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAG5D,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;AAE7C,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,IAAe,EACf,QAAgB,EAChB,OAA8B;IAE9B,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE;QACf,OAAO,IAAI,CAAC;KACb;IAED,IAAI;QACF,OAAO;YACL,GAAG,IAAI;YACP,IAAI,EAAE,MAAM,aAAa,CAAC,mBAAmB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC;SACnE,CAAC;KACH;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC,IAAI,gCAAgC,QAAQ,GAAG,CAAC,CAAC;QAE1E,OAAO,IAAI,CAAC;KACb;AACH,CAAC;AAED,KAAK,UAAU,aAAa,CAAC,KAAa,EAAE,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