@devgateway/dvz-ui-react 1.3.1 → 1.3.3

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 (209) hide show
  1. package/dist/cjs/embeddable/time-line/mobile.js +1 -1
  2. package/dist/cjs/embeddable/vertical-featuredtabs/index.js +1 -1
  3. package/dist/cjs/layout/Layout.js +1 -1
  4. package/dist/cjs/layout/SSRFavicon.js +1 -0
  5. package/dist/cjs/layout/containers/PreviewTypeContainer.js +1 -1
  6. package/dist/cjs/layout/containers/SlugContainer.js +1 -1
  7. package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
  8. package/dist/cjs/layout/index.js +1 -1
  9. package/dist/cjs/styles.css +1 -1
  10. package/dist/esm/embeddable/time-line/mobile.js +121 -108
  11. package/dist/esm/embeddable/vertical-featuredtabs/index.js +1 -1
  12. package/dist/esm/layout/Layout.js +16 -14
  13. package/dist/esm/layout/SSRFavicon.js +11 -0
  14. package/dist/esm/layout/containers/PreviewTypeContainer.js +11 -11
  15. package/dist/esm/layout/containers/SlugContainer.js +11 -11
  16. package/dist/esm/layout/containers/SlugPostContainer.js +13 -16
  17. package/dist/esm/layout/index.js +8 -6
  18. package/dist/esm/styles.css +1 -1
  19. package/dist/types/dvz-ui/src/layout/SSRFavicon.d.ts +5 -0
  20. package/dist/types/{layout → dvz-ui/src/layout}/containers/PreviewTypeContainer.d.ts +1 -1
  21. package/dist/types/dvz-ui/src/layout/containers/SlugContainer.d.ts +9 -0
  22. package/dist/types/dvz-ui/src/layout/containers/SlugPostContainer.d.ts +9 -0
  23. package/dist/types/{layout → dvz-ui/src/layout}/index.d.ts +1 -0
  24. package/dist/types/{utils → dvz-ui/src/utils}/data.d.ts +1 -1
  25. package/package.json +22 -24
  26. package/dist/types/layout/containers/SlugContainer.d.ts +0 -7
  27. package/dist/types/layout/containers/SlugPostContainer.d.ts +0 -7
  28. /package/dist/types/{api → dvz-ui/src/api}/commons.d.ts +0 -0
  29. /package/dist/types/{conf → dvz-ui/src/conf}/config.json.d.ts +0 -0
  30. /package/dist/types/{conf → dvz-ui/src/conf}/index.d.ts +0 -0
  31. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/Dummy.d.ts +0 -0
  32. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/agree-and-download/index.d.ts +0 -0
  33. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/big-number/index.d.ts +0 -0
  34. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/big-number-trend/index.d.ts +0 -0
  35. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Background.d.ts +0 -0
  36. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Blood.d.ts +0 -0
  37. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Bounds.d.ts +0 -0
  38. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Brain.d.ts +0 -0
  39. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Ectopic.d.ts +0 -0
  40. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Erectile.d.ts +0 -0
  41. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Eyes.d.ts +0 -0
  42. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Head.d.ts +0 -0
  43. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Heart.d.ts +0 -0
  44. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Larynx.d.ts +0 -0
  45. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Liver.d.ts +0 -0
  46. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Lungs.d.ts +0 -0
  47. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Stomach.d.ts +0 -0
  48. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/index.d.ts +0 -0
  49. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Bar.d.ts +0 -0
  50. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Bump.d.ts +0 -0
  51. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/CSVDataFrame.d.ts +0 -0
  52. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/DelayedRender.d.ts +0 -0
  53. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Diverging.d.ts +0 -0
  54. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Legends.d.ts +0 -0
  55. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Line.d.ts +0 -0
  56. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/LineLayer.d.ts +0 -0
  57. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Messages.d.ts +0 -0
  58. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Pie.d.ts +0 -0
  59. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Radar.d.ts +0 -0
  60. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Radar2.d.ts +0 -0
  61. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Sunburst.d.ts +0 -0
  62. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Tooltip.d.ts +0 -0
  63. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/UserMeasures.d.ts +0 -0
  64. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/CategoricalColors.d.ts +0 -0
  65. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/ColorProvider.d.ts +0 -0
  66. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/Colors.d.ts +0 -0
  67. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/ManualColors.d.ts +0 -0
  68. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/PlainColor.d.ts +0 -0
  69. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/SequentialColors.d.ts +0 -0
  70. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/SystemColors.d.ts +0 -0
  71. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Bar.d.ts +0 -0
  72. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Line.d.ts +0 -0
  73. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Pie.d.ts +0 -0
  74. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Utils.d.ts +0 -0
  75. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/index.d.ts +0 -0
  76. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/index.d.ts +0 -0
  77. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/prevalenceBuilder.d.ts +0 -0
  78. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/child-page-menu/index.d.ts +0 -0
  79. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/ChartTooltip.d.ts +0 -0
  80. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/MapTooltip.d.ts +0 -0
  81. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/Messages.d.ts +0 -0
  82. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/CategoricalColors.d.ts +0 -0
  83. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/ColorProvider.d.ts +0 -0
  84. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/Colors.d.ts +0 -0
  85. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/ManualColors.d.ts +0 -0
  86. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/PlainColor.d.ts +0 -0
  87. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/SequentialColors.d.ts +0 -0
  88. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/SystemColors.d.ts +0 -0
  89. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/connected-templates/PostContent.d.ts +0 -0
  90. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/connected-templates/PostIntro.d.ts +0 -0
  91. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/BaseLayer.d.ts +0 -0
  92. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/BreaksStyles.d.ts +0 -0
  93. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/DataLayer.d.ts +0 -0
  94. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/FlowLayer.d.ts +0 -0
  95. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/GradientColors.d.ts +0 -0
  96. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/LatLongLayer.d.ts +0 -0
  97. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Layer.d.ts +0 -0
  98. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Legends.d.ts +0 -0
  99. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Map.d.ts +0 -0
  100. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/ProjectedContainer.d.ts +0 -0
  101. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Tooltip.d.ts +0 -0
  102. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Utils.d.ts +0 -0
  103. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/ZoomControl.d.ts +0 -0
  104. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/index.d.ts +0 -0
  105. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/CategoriesConsumer.d.ts +0 -0
  106. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/CategoriesProvider.d.ts +0 -0
  107. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataConsumer.d.ts +0 -0
  108. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataConsumerMap.d.ts +0 -0
  109. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataContext.d.ts +0 -0
  110. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataProvider.d.ts +0 -0
  111. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/datalabel/index.d.ts +0 -0
  112. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/download/dom-to-image.d.ts +0 -0
  113. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/download/index.d.ts +0 -0
  114. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/downloadPDF/index.d.ts +0 -0
  115. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/featuredtabs/index.d.ts +0 -0
  116. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter/_@deprecated_Components.d.ts +0 -0
  117. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter/index.d.ts +0 -0
  118. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter-reset-button/index.d.ts +0 -0
  119. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filters-apply-button/index.d.ts +0 -0
  120. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/inlinelist/index.d.ts +0 -0
  121. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/MapCSVDataFrame.d.ts +0 -0
  122. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/MapDataFrame.d.ts +0 -0
  123. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/index.d.ts +0 -0
  124. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/legend.d.ts +0 -0
  125. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/map.d.ts +0 -0
  126. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/measures/index.d.ts +0 -0
  127. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/menu/index.d.ts +0 -0
  128. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/new-time-line/index.d.ts +0 -0
  129. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/new-time-line/timeline.d.ts +0 -0
  130. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/newsletter/index.d.ts +0 -0
  131. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagegallery/index.d.ts +0 -0
  132. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagemodules/FloatingNavigator.d.ts +0 -0
  133. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagemodules/index.d.ts +0 -0
  134. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/parallax/index.d.ts +0 -0
  135. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/DropDownFilter.d.ts +0 -0
  136. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/Post.d.ts +0 -0
  137. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/index.d.ts +0 -0
  138. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/utils.d.ts +0 -0
  139. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/postscarousel/index.d.ts +0 -0
  140. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/data-api.d.ts +0 -0
  141. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/data.d.ts +0 -0
  142. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/embeddable-api.d.ts +0 -0
  143. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/embeddable.d.ts +0 -0
  144. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/Reference.d.ts +0 -0
  145. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/ReferencesList.d.ts +0 -0
  146. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/index.d.ts +0 -0
  147. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/sankeychart/Sankey.d.ts +0 -0
  148. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/sankeychart/index.d.ts +0 -0
  149. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/showcase/index.d.ts +0 -0
  150. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-chart/index.d.ts +0 -0
  151. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-dashboard/index-sdk.d.ts +0 -0
  152. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-dashboard/index.d.ts +0 -0
  153. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/tabbedposts/index.d.ts +0 -0
  154. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/desktop.d.ts +0 -0
  155. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/index.d.ts +0 -0
  156. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/mobile.d.ts +0 -0
  157. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/tooltip/index.d.ts +0 -0
  158. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/utils/common.d.ts +0 -0
  159. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/utils/parseUtils.d.ts +0 -0
  160. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/vertical-featuredtabs/index.d.ts +0 -0
  161. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/wrapped/index.d.ts +0 -0
  162. /package/dist/types/{index.d.ts → dvz-ui/src/index.d.ts} +0 -0
  163. /package/dist/types/{layout → dvz-ui/src/layout}/ClassicHeader.d.ts +0 -0
  164. /package/dist/types/{layout → dvz-ui/src/layout}/CustomSemanticSearch.d.ts +0 -0
  165. /package/dist/types/{layout → dvz-ui/src/layout}/Customizer.d.ts +0 -0
  166. /package/dist/types/{layout → dvz-ui/src/layout}/FavIcon.d.ts +0 -0
  167. /package/dist/types/{layout → dvz-ui/src/layout}/Favicon.d.ts +0 -0
  168. /package/dist/types/{layout → dvz-ui/src/layout}/FlexWrapDetector.d.ts +0 -0
  169. /package/dist/types/{layout → dvz-ui/src/layout}/FloatingMenuHeader.d.ts +0 -0
  170. /package/dist/types/{layout → dvz-ui/src/layout}/Footer.d.ts +0 -0
  171. /package/dist/types/{layout → dvz-ui/src/layout}/Header.d.ts +0 -0
  172. /package/dist/types/{layout → dvz-ui/src/layout}/LangSwitcher.d.ts +0 -0
  173. /package/dist/types/{layout → dvz-ui/src/layout}/Layout.d.ts +0 -0
  174. /package/dist/types/{layout → dvz-ui/src/layout}/Loading.d.ts +0 -0
  175. /package/dist/types/{layout → dvz-ui/src/layout}/PreviewComponent.d.ts +0 -0
  176. /package/dist/types/{layout → dvz-ui/src/layout}/ResponsiveContainer.d.ts +0 -0
  177. /package/dist/types/{layout → dvz-ui/src/layout}/ScrollTop.d.ts +0 -0
  178. /package/dist/types/{layout → dvz-ui/src/layout}/SearchControl.d.ts +0 -0
  179. /package/dist/types/{layout → dvz-ui/src/layout}/TopNavigator.d.ts +0 -0
  180. /package/dist/types/{layout → dvz-ui/src/layout}/containers/PreviewPageContainer.d.ts +0 -0
  181. /package/dist/types/{layout → dvz-ui/src/layout}/containers/index.d.ts +0 -0
  182. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/resize-observer.d.ts +0 -0
  183. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/screen-orientation.d.ts +0 -0
  184. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/window-dimensions.d.ts +0 -0
  185. /package/dist/types/{lib → dvz-ui/src/lib}/index.d.ts +0 -0
  186. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/index.d.ts +0 -0
  187. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/providers/IntlProvider.d.ts +0 -0
  188. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/providers/Provider.d.ts +0 -0
  189. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/index.d.ts +0 -0
  190. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/types.d.ts +0 -0
  191. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/getStateName.d.ts +0 -0
  192. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/getUnexpectedInvocationParameterMessage.d.ts +0 -0
  193. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/index.d.ts +0 -0
  194. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/validateNextState.d.ts +0 -0
  195. /package/dist/types/{redux → dvz-ui/src/redux}/hooks.d.ts +0 -0
  196. /package/dist/types/{redux → dvz-ui/src/redux}/index.d.ts +0 -0
  197. /package/dist/types/{redux → dvz-ui/src/redux}/reducer.d.ts +0 -0
  198. /package/dist/types/{redux → dvz-ui/src/redux}/store.d.ts +0 -0
  199. /package/dist/types/{tools → dvz-ui/src/tools}/serviceWorker.d.ts +0 -0
  200. /package/dist/types/{tracker → dvz-ui/src/tracker}/index.d.ts +0 -0
  201. /package/dist/types/{tracker → dvz-ui/src/tracker}/withGoogleAnalytics.d.ts +0 -0
  202. /package/dist/types/{translations → dvz-ui/src/translations}/af.json.d.ts +0 -0
  203. /package/dist/types/{translations → dvz-ui/src/translations}/en.json.d.ts +0 -0
  204. /package/dist/types/{translations → dvz-ui/src/translations}/fr.json.d.ts +0 -0
  205. /package/dist/types/{translations → dvz-ui/src/translations}/index.d.ts +0 -0
  206. /package/dist/types/{utils → dvz-ui/src/utils}/AppMedia.d.ts +0 -0
  207. /package/dist/types/{utils → dvz-ui/src/utils}/countries.d.ts +0 -0
  208. /package/dist/types/{utils → dvz-ui/src/utils}/deviceType.d.ts +0 -0
  209. /package/dist/types/{utils → dvz-ui/src/utils}/semanticUtils.d.ts +0 -0
@@ -1,44 +1,52 @@
1
- import { jsx as a, jsxs as at } from "react/jsx-runtime";
2
- import { PostProvider as bt, PostConsumer as xt } from "@devgateway/wp-react-lib";
3
- import Ct from "../connected-templates/PostIntro.js";
4
- import { useRef as st, useState as q, useCallback as G, useLayoutEffect as wt } from "react";
5
- import { Container as Tt, Modal as U } from "semantic-ui-react";
1
+ import { jsx as r, jsxs as at } from "react/jsx-runtime";
2
+ import { PostProvider as bt, PostConsumer as Ct } from "@devgateway/wp-react-lib";
3
+ import xt from "../connected-templates/PostIntro.js";
4
+ import { useState as z, useEffect as wt, useRef as st, useCallback as G, useLayoutEffect as Tt } from "react";
5
+ import { Container as vt, Modal as U } from "semantic-ui-react";
6
6
  import * as p from "d3";
7
- import { useWindowDimensionsAndDevice as vt } from "../../lib/hooks/window-dimensions.js";
8
- import { useScreenOrientation as Pt } from "../../lib/hooks/screen-orientation.js";
9
- const $t = {
7
+ import { useWindowDimensionsAndDevice as Pt } from "../../lib/hooks/window-dimensions.js";
8
+ import { useScreenOrientation as $t } from "../../lib/hooks/screen-orientation.js";
9
+ import "../../utils/AppMedia.js";
10
+ import "../../layout/Footer.js";
11
+ import "../../layout/Header.js";
12
+ import "react-router";
13
+ import "../../layout/Layout.js";
14
+ import "../index.js";
15
+ import "../../layout/Favicon.js";
16
+ import Dt from "../../layout/Loading.js";
17
+ const Wt = {
10
18
  visibility: "visible",
11
19
  position: "relative",
12
20
  height: "auto",
13
21
  width: "auto"
14
- }, Dt = 0, Wt = (T) => {
22
+ }, Ht = 0, It = (h) => {
15
23
  let {
16
- posts: s,
17
- lineWidth: v,
24
+ posts: a,
25
+ lineWidth: m,
18
26
  lineColor: P,
19
27
  config: c,
20
- marginLeft: L,
21
- marginTop: N,
28
+ marginLeft: N,
29
+ marginTop: R,
22
30
  marginRight: J,
23
- marginBottom: R,
24
- fontSize: y,
25
- subtitleWidth: _,
26
- subtitleHeight: b,
31
+ marginBottom: _,
32
+ fontSize: C,
33
+ subtitleWidth: B,
34
+ subtitleHeight: x,
27
35
  enableTitlePopup: $,
28
36
  enableCirclePopup: D,
29
37
  enableDefaultPopup: V,
30
38
  closePopupOnMouseOut: X,
31
39
  unique: u
32
- } = T;
33
- _ = 250;
34
- const x = st(), W = st(), [H, f] = q(!1), [I, O] = q(0), [k, B] = q(null), { orientation: g } = Pt(), { width: Y, deviceType: h, height: S } = vt({
40
+ } = h;
41
+ B = 250;
42
+ const w = st(), W = st(), [H, g] = z(!1), [I, O] = z(0), [S, j] = z(null), { orientation: y } = $t(), { width: Y, deviceType: f, height: k } = Pt({
35
43
  getDeviceType: !0,
36
44
  getHeight: !0
37
- }), j = G((t) => `circle${u}${t}`, [u]), ct = G((t) => `title${u}${t}`, [u]), dt = (t) => {
45
+ }), F = G((t) => `circle${u}${t}`, [u]), ct = G((t) => `title${u}${t}`, [u]), dt = (t) => {
38
46
  var i;
39
47
  return ((i = c[t]) == null ? void 0 : i.size) || 10;
40
48
  }, pt = ({ content: t, isOpen: i, style: l }) => {
41
- const m = (n) => (n = n.replace(
49
+ const b = (n) => (n = n.replace(
42
50
  /<ul(.*?)>/g,
43
51
  '<ul class="has-white-color has-text-color has-standard-14-font-size" style="list-style-type:disc !important; list-style: initial !important; padding-left:20px; color:#fefefe;">'
44
52
  ), n = n.replace(/<a(.*?)>/g, '<a$1 style="color:#fefefe;">'), n);
@@ -46,7 +54,7 @@ const $t = {
46
54
  U,
47
55
  {
48
56
  open: i,
49
- onClose: () => f(!1),
57
+ onClose: () => g(!1),
50
58
  size: "fullscreen",
51
59
  closeIcon: !0,
52
60
  centered: !0,
@@ -57,14 +65,14 @@ const $t = {
57
65
  ...l
58
66
  },
59
67
  children: [
60
- /* @__PURE__ */ a(U.Header, { style: { ...l, borderBottom: "none" } }),
61
- /* @__PURE__ */ a(
68
+ /* @__PURE__ */ r(U.Header, { style: { ...l, borderBottom: "none" } }),
69
+ /* @__PURE__ */ r(
62
70
  U.Content,
63
71
  {
64
72
  className: "styled-list-content",
65
73
  style: { ...l },
66
74
  dangerouslySetInnerHTML: {
67
- __html: m(
75
+ __html: b(
68
76
  t.props.children.props.post.content.rendered
69
77
  )
70
78
  }
@@ -79,35 +87,35 @@ const $t = {
79
87
  return (i = c[t]) == null ? void 0 : i.circleColor;
80
88
  }, Q = (t) => c[t].titleColor, Z = (t) => c[t].lineColor, tt = (t) => c[t].tooltipFontColor || "#fff", ut = (t) => c[t].readMoreLabel, et = G((t, i) => {
81
89
  t.preventDefault();
82
- const l = 260, m = 50;
90
+ const l = 260, b = 50;
83
91
  let n = [0, 0];
84
92
  if (t) {
85
- const C = t.target.getBoundingClientRect(), A = t.target.closest(".time").getBoundingClientRect(), r = C.left - A.left, w = C.top + A.top;
86
- n = [r + l, w + m];
93
+ const T = t.target.getBoundingClientRect(), A = t.target.closest(".time").getBoundingClientRect(), s = T.left - A.left, v = T.top + A.top;
94
+ n = [s + l, v + b];
87
95
  const M = 400;
88
- C.left + r + M + l > window.innerWidth && (n[0] = r - M * 0.6);
96
+ T.left + s + M + l > window.innerWidth && (n[0] = s - M * 0.6);
89
97
  }
90
- f(!0), B({ data: i, id: i.id, position: n }), gt(i.id);
91
- }, []), ht = () => {
92
- f(!1);
93
- }, ft = (t) => {
94
- p.selectAll(`#${j(t)}`).style("stroke", "none").style("fill", K(t)), p.selectAll(`#label${t}`).style("font-weight", "normal");
95
- }, gt = (t) => {
96
- ft(Dt), p.selectAll(`#${j(t)}`).style("stroke", K(t)).style("fill", "#fff"), p.selectAll(`#label${t}`).style("font-weight", "bold");
98
+ g(!0), j({ data: i, id: i.id, position: n }), mt(i.id);
99
+ }, []), ft = () => {
100
+ g(!1);
101
+ }, ht = (t) => {
102
+ p.selectAll(`#${F(t)}`).style("stroke", "none").style("fill", K(t)), p.selectAll(`#label${t}`).style("font-weight", "normal");
103
+ }, mt = (t) => {
104
+ ht(Ht), p.selectAll(`#${F(t)}`).style("stroke", K(t)).style("fill", "#fff"), p.selectAll(`#label${t}`).style("font-weight", "bold");
97
105
  };
98
- return wt(() => {
106
+ return Tt(() => {
99
107
  var nt;
100
108
  const t = {
101
- top: N,
102
- bottom: R
103
- }, i = x.current.clientWidth, l = W.current.clientWidth;
109
+ top: R,
110
+ bottom: _
111
+ }, i = w.current.clientWidth, l = W.current.clientWidth;
104
112
  l > 0 && O(l);
105
- const m = S, n = {
113
+ const b = k, n = {
106
114
  mobile: "75",
107
115
  tablet: "150",
108
116
  midTablet: "150",
109
117
  laptop: "150"
110
- }, C = {
118
+ }, T = {
111
119
  mobile: "250",
112
120
  tablet: "350",
113
121
  midTablet: "350",
@@ -117,71 +125,71 @@ const $t = {
117
125
  tablet: 30,
118
126
  midTablet: 30,
119
127
  laptop: 40
120
- }, r = p.scaleLinear().domain([0, s.length - 1]).range([t.top, m - t.bottom]), w = p.select(x.current);
121
- w.selectAll("*").remove(), w.attr("width", i).attr("height", m);
122
- const M = p.line(), mt = [
123
- [0, r(0)],
124
- [0, r(s.length - 1)]
125
- ], yt = M(mt);
126
- let ot = `translate(${n[h]},0)`;
127
- ((nt = process.env.REACT_APP_THEME) == null ? void 0 : nt.startsWith("cd")) && (ot = `translate(${n[h]},20)`);
128
- const z = w.append("g").attr("transform", ot);
129
- P = "#E4E5EA", v = 6, z.append("path").attr("d", yt).attr("stroke-width", v).attr("stroke", P).attr("class", "timeline-path"), z.selectAll(".circle").data(s).enter().append("circle").attr("id", (o, e) => j(e)).attr("cx", 0).attr("class", "timeline-circle").attr("cy", (o, e) => r(e)).attr("r", (o, e) => dt(e)).style("fill", (o, e) => {
128
+ }, s = p.scaleLinear().domain([0, a.length - 1]).range([t.top, b - t.bottom]), v = p.select(w.current);
129
+ v.selectAll("*").remove(), v.attr("width", i).attr("height", b);
130
+ const M = p.line(), gt = [
131
+ [0, s(0)],
132
+ [0, s(a.length - 1)]
133
+ ], yt = M(gt);
134
+ let ot = `translate(${n[f]},0)`;
135
+ ((nt = process.env.REACT_APP_THEME) == null ? void 0 : nt.startsWith("cd")) && (ot = `translate(${n[f]},20)`);
136
+ const E = v.append("g").attr("transform", ot);
137
+ P = "#E4E5EA", m = 6, E.append("path").attr("d", yt).attr("stroke-width", m).attr("stroke", P).attr("class", "timeline-path"), E.selectAll(".circle").data(a).enter().append("circle").attr("id", (o, e) => F(e)).attr("cx", 0).attr("class", "timeline-circle").attr("cy", (o, e) => s(e)).attr("r", (o, e) => dt(e)).style("fill", (o, e) => {
130
138
  var d;
131
139
  return ((d = c[e]) == null ? void 0 : d.circleColor) || "#000";
132
140
  }).style("cursor", D ? "pointer" : "default").on("click", (o, e) => {
133
141
  o.preventDefault(), D && et(o, e);
134
- }), z.selectAll(".title").data(s).enter().append("foreignObject").attr("x", A[h]).attr("y", (o, e) => r(e) - Number.parseInt(b) / 2).attr("width", Number.parseInt(C[h])).attr("height", Number.parseInt(b)).attr("class", "timeline-title").append("xhtml:div").attr("id", (o, e) => ct(e)).style("font-size", `${Number.parseInt(y) + 1}px`).style("color", (o, e) => Q(e)).style("font-weight", "bold").style("line-height", "1.2rem").style("text-align", "left").style("cursor", $ ? "pointer" : "default").style("overflow", "hidden").style("display", "-webkit-box").style("-webkit-line-clamp", "2").style("-webkit-box-orient", "vertical").style("text-overflow", "ellipsis").style("overflow-wrap", "break-word").html((o, e) => {
142
+ }), E.selectAll(".title").data(a).enter().append("foreignObject").attr("x", A[f]).attr("y", (o, e) => s(e) - Number.parseInt(x) / 2).attr("width", Number.parseInt(T[f])).attr("height", Number.parseInt(x)).attr("class", "timeline-title").append("xhtml:div").attr("id", (o, e) => ct(e)).style("font-size", `${Number.parseInt(C) + 1}px`).style("color", (o, e) => Q(e)).style("font-weight", "bold").style("line-height", "1.2rem").style("text-align", "left").style("cursor", $ ? "pointer" : "default").style("overflow", "hidden").style("display", "-webkit-box").style("-webkit-line-clamp", "2").style("-webkit-box-orient", "vertical").style("text-overflow", "ellipsis").style("overflow-wrap", "break-word").html((o, e) => {
135
143
  const d = ut(e);
136
- let E = o.title.rendered;
137
- return d && (E += `<br><span style="font-size:${Number.parseInt(y) - 3}px;color:${Q(
144
+ let L = o.title.rendered;
145
+ return d && (L += `<br><span style="font-size:${Number.parseInt(C) - 3}px;color:${Q(
138
146
  e
139
- )};text-decoration:underline;text-underline-offset:3px">${d}</span>`), E;
147
+ )};text-decoration:underline;text-underline-offset:3px">${d}</span>`), L;
140
148
  }).each(function(o, e) {
141
149
  const d = p.select(this.parentNode);
142
150
  setTimeout(() => {
143
- const E = this.getBoundingClientRect(), rt = Math.min(
144
- E.height,
145
- Number.parseInt(b) * 2
151
+ const L = this.getBoundingClientRect(), rt = Math.min(
152
+ L.height,
153
+ Number.parseInt(x) * 2
146
154
  );
147
- d.attr("height", rt), d.attr("y", r(e) - rt / 2);
155
+ d.attr("height", rt), d.attr("y", s(e) - rt / 2);
148
156
  }, 0);
149
157
  }).on("click", (o, e, d) => {
150
158
  o.preventDefault(), $ && et(o, e);
151
159
  });
152
- const it = +y + 1, lt = 60, F = it * 0.9;
153
- z.selectAll(".year-fo").data(s).enter().append("foreignObject").attr("class", "year-fo").attr("x", -70).attr("y", (o, e) => r(e) - F / 2).attr("width", lt).attr("height", F).append("xhtml:div").style("display", "flex").style("align-items", "center").style("justify-content", "flex-end").style("width", `${lt}px`).style("height", `${F}px`).style("font-size", `${it}px`).style("line-height", "1em").style("font-weight", "400").style("color", "#4C4D50").html((o) => o.meta_fields.subtitle);
154
- }, [h, g]), /* @__PURE__ */ at(
160
+ const it = +C + 1, lt = 60, q = it * 0.9;
161
+ E.selectAll(".year-fo").data(a).enter().append("foreignObject").attr("class", "year-fo").attr("x", -70).attr("y", (o, e) => s(e) - q / 2).attr("width", lt).attr("height", q).append("xhtml:div").style("display", "flex").style("align-items", "center").style("justify-content", "flex-end").style("width", `${lt}px`).style("height", `${q}px`).style("font-size", `${it}px`).style("line-height", "1em").style("font-weight", "400").style("color", "#4C4D50").html((o) => o.meta_fields.subtitle);
162
+ }, [f, y]), /* @__PURE__ */ at(
155
163
  "div",
156
164
  {
157
165
  className: "time line",
158
166
  style: { position: "relative" },
159
167
  ref: W,
160
168
  children: [
161
- s.filter((t) => k && k.id === t.id).map((t) => {
162
- const i = t.slug || "unknown-slug", l = s.indexOf(t);
163
- return /* @__PURE__ */ a(
169
+ a.filter((t) => S && S.id === t.id).map((t) => {
170
+ const i = t.slug || "unknown-slug", l = a.indexOf(t);
171
+ return /* @__PURE__ */ r(
164
172
  pt,
165
173
  {
166
174
  isOpen: H,
167
- content: /* @__PURE__ */ a(
175
+ content: /* @__PURE__ */ r(
168
176
  "div",
169
177
  {
170
178
  style: {
171
179
  backgroundColor: Z(l),
172
180
  color: tt(l)
173
181
  },
174
- children: /* @__PURE__ */ a(
175
- Ct,
182
+ children: /* @__PURE__ */ r(
183
+ xt,
176
184
  {
177
185
  post: t,
178
- style: $t
186
+ style: Wt
179
187
  },
180
188
  i
181
189
  )
182
190
  }
183
191
  ),
184
- closeTooltip: ht,
192
+ closeTooltip: ft,
185
193
  style: {
186
194
  backgroundColor: Z(l),
187
195
  color: tt(l)
@@ -190,81 +198,86 @@ const $t = {
190
198
  `${i}_modal`
191
199
  );
192
200
  }),
193
- /* @__PURE__ */ a("svg", { height: S, width: I, ref: x })
201
+ /* @__PURE__ */ r("svg", { height: k, width: I, ref: w })
194
202
  ]
195
203
  },
196
- u + h + g
204
+ u + f + y
197
205
  );
198
- }, Et = (T) => {
206
+ }, Ot = (h) => {
199
207
  const {
200
- "data-type": s,
201
- "data-taxonomy": v,
208
+ "data-type": a,
209
+ "data-taxonomy": m,
202
210
  "data-categories": P,
203
211
  "data-items": c,
204
- "data-height": L,
205
- "data-line-color": N = "#000",
212
+ "data-height": N,
213
+ "data-line-color": R = "#000",
206
214
  "data-config": J = "{}",
207
- "data-position": R = "middle",
208
- "data-line-width": y = "1",
209
- "data-margin-left": _ = 50,
210
- "data-margin-top": b = 25,
215
+ "data-position": _ = "middle",
216
+ "data-line-width": C = "1",
217
+ "data-margin-left": B = 50,
218
+ "data-margin-top": x = 25,
211
219
  "data-margin-right": $ = 50,
212
220
  "data-margin-bottom": D = 25,
213
221
  "data-font-size": V = 14,
214
222
  "data-title-width": X = 100,
215
223
  "data-title-height": u = 50,
216
- "data-subtitle-width": x = 250,
224
+ "data-subtitle-width": w = 250,
217
225
  "data-subtitle-height": W = 60,
218
226
  "data-enable-title-popup": H = "false",
219
- "data-enable-circle-popup": f = "true",
227
+ "data-enable-circle-popup": g = "true",
220
228
  "data-enable-default-popup": I = "false",
221
229
  "data-close-popup-on-mouse-out": O = "false",
222
- editing: k,
223
- parent: B,
224
- unique: g
225
- } = T, Y = T.intl.locale, S = {
226
- unique: g || Math.random().toString(36).substring(2, 9),
227
- marginLeft: _,
228
- marginTop: b,
230
+ editing: S,
231
+ parent: j,
232
+ unique: y
233
+ } = h, Y = h.intl.locale, k = {
234
+ unique: y || Math.random().toString(36).substring(2, 9),
235
+ marginLeft: B,
236
+ marginTop: x,
229
237
  marginRight: $,
230
238
  marginBottom: D,
231
- lineWidth: y,
232
- height: L,
233
- position: R,
234
- lineColor: decodeURIComponent(N),
239
+ lineWidth: C,
240
+ height: N,
241
+ position: _,
242
+ lineColor: decodeURIComponent(R),
235
243
  config: JSON.parse(decodeURIComponent(J)),
236
244
  fontSize: V,
237
245
  titleWidth: X,
238
246
  titleHeight: u,
239
- subtitleWidth: x,
247
+ subtitleWidth: w,
240
248
  subtitleHeight: W,
241
249
  enableTitlePopup: H == !0 || H == "true",
242
- enableCirclePopup: f == !0 || f == "true",
250
+ enableCirclePopup: g == !0 || g == "true",
243
251
  enableDefaultPopup: I == !0 || I == "true",
244
252
  closePopupOnMouseOut: O == !0 || O == "true"
245
253
  };
246
- return /* @__PURE__ */ a(
247
- Tt,
254
+ return /* @__PURE__ */ r(
255
+ vt,
248
256
  {
249
- style: { height: `${L}px` },
250
- className: `viz time line ${k ? "editing" : ""}`,
257
+ style: { height: `${N}px` },
258
+ className: `viz time line ${S ? "editing" : ""}`,
251
259
  fluid: !0,
252
- children: /* @__PURE__ */ a(
260
+ children: /* @__PURE__ */ r(
253
261
  bt,
254
262
  {
255
263
  locale: Y,
256
- type: s,
257
- taxonomy: v,
264
+ type: a,
265
+ taxonomy: m,
258
266
  categories: P,
259
- store: `carousel_${B}_${g}`,
267
+ store: `carousel_${j}_${y}`,
260
268
  page: 1,
261
269
  perPage: c,
262
- children: /* @__PURE__ */ a(xt, { children: /* @__PURE__ */ a(Wt, { ...S }) })
270
+ children: /* @__PURE__ */ r(Ct, { children: /* @__PURE__ */ r(It, { ...k }) })
263
271
  }
264
272
  )
265
273
  }
266
274
  );
275
+ }, Jt = (h) => {
276
+ const [a, m] = z(!1);
277
+ return wt(() => {
278
+ m(!0);
279
+ }, []), a ? /* @__PURE__ */ r(Ot, { ...h }) : /* @__PURE__ */ r(Dt, {});
267
280
  };
268
281
  export {
269
- Et as default
282
+ Jt as default
270
283
  };
@@ -221,7 +221,7 @@ const ee = ({ posts: r, activeItem: c, setActive: g, colors: p }) => {
221
221
  E(v()), N(window.innerWidth <= 1365);
222
222
  }, 100);
223
223
  };
224
- R(() => (window.screen.orientation && window.screen.orientation.addEventListener(
224
+ R(() => (window && window.screen.orientation && window.screen.orientation.addEventListener(
225
225
  "change",
226
226
  T
227
227
  ), window.addEventListener("resize", T), () => {
@@ -11,22 +11,24 @@ import "./Footer.js";
11
11
  import "./Header.js";
12
12
  import { CustomizerWrapper as E } from "./Customizer.js";
13
13
  import "./Favicon.js";
14
- import { Config as j } from "../conf/index.js";
15
- import * as b from "../translations/en.json.js";
16
- import * as x from "../translations/fr.json.js";
17
- import * as y from "../translations/af.json.js";
18
- import { updateIntl as N } from "../lib/react-intl-redux/index.js";
14
+ import { Config as y } from "../conf/index.js";
15
+ import * as N from "../translations/en.json.js";
16
+ import * as O from "../translations/fr.json.js";
17
+ import * as b from "../translations/af.json.js";
18
+ import { updateIntl as j } from "../lib/react-intl-redux/index.js";
19
19
  import "immutable";
20
20
  import { store as n } from "../redux/store.js";
21
21
  const i = {
22
- en: b,
23
- fr: x,
24
- am: y
25
- }, O = v((t) => (document.title = t.settings.description, /* @__PURE__ */ e(p, {}))), J = () => {
26
- const t = d(), l = u(), r = j.DEFAULT_LOCALE;
22
+ en: N,
23
+ fr: O,
24
+ am: b
25
+ };
26
+ v((t) => (document.title = t.settings.description, /* @__PURE__ */ e(p, {})));
27
+ const G = () => {
28
+ const t = d(), l = u(), r = y.DEFAULT_LOCALE;
27
29
  console.log("defaultLocale", r);
28
30
  const o = t.lan, c = l.pathname;
29
- return console.log("pathParams", t), m(() => {
31
+ return console.log("pathParams", JSON.stringify(t.lan)), m(() => {
30
32
  process.env.NODE_ENV === "development" && (console.log("----------.env-----------"), console.log(process.env), console.log("----------.env-----------")), window && window.setTimeout(() => {
31
33
  if (window && window.location.hash) {
32
34
  const s = document.getElementById(window.location.hash.substring(1));
@@ -34,12 +36,12 @@ const i = {
34
36
  }
35
37
  }, 2e3);
36
38
  }, []), m(() => {
37
- n.dispatch(N({ locale: o, formats: {}, messages: i[o ?? "en"] }));
39
+ n.dispatch(j({ locale: o, formats: {}, messages: i[o ?? "en"] }));
38
40
  }, [o]), o ? Object.keys(i).includes(o) ? /* @__PURE__ */ e(P, { store: n, children: /* @__PURE__ */ e(w, { locale: o, messages: i[o], children: /* @__PURE__ */ e(C, { getComponent: h, store: n, locale: o, children: /* @__PURE__ */ e(I, { locale: o, changeUUID: null, children: /* @__PURE__ */ f(L, { children: [
39
- /* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(O, {}) }),
41
+ /* @__PURE__ */ e(E, {}),
40
42
  /* @__PURE__ */ e(g, {})
41
43
  ] }) }) }) }, o) }) : /* @__PURE__ */ e(a, { to: `/${r}${c}`, replace: !0 }) : /* @__PURE__ */ e(a, { to: r, replace: !0 });
42
44
  };
43
45
  export {
44
- J as default
46
+ G as default
45
47
  };
@@ -0,0 +1,11 @@
1
+ import { jsx as n, Fragment as e, jsxs as l } from "react/jsx-runtime";
2
+ function i({ siteLogo: r }) {
3
+ return /* @__PURE__ */ n(e, { children: r && /* @__PURE__ */ l(e, { children: [
4
+ /* @__PURE__ */ n("link", { rel: "icon", type: "image/x-icon", href: r }),
5
+ /* @__PURE__ */ n("link", { rel: "apple-touch-icon", href: r }),
6
+ /* @__PURE__ */ n("link", { rel: "shortcut", href: r })
7
+ ] }) });
8
+ }
9
+ export {
10
+ i as default
11
+ };
@@ -1,23 +1,23 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import c from "../ResponsiveContainer.js";
3
- import { PostProvider as m, PostConsumer as w, Post as v } from "@devgateway/wp-react-lib";
4
- import { useLocation as P, useParams as l } from "react-router";
5
- const y = ({ header: t, footer: s }) => {
6
- const n = P(), e = l(), o = new URLSearchParams(n.search), i = o.get("preview"), p = e.type == "post" ? "posts" : e.type, a = o.get("_wpnonce");
7
- return /* @__PURE__ */ r(c, { header: t, footer: s, children: /* @__PURE__ */ r(
8
- m,
2
+ import m from "../ResponsiveContainer.js";
3
+ import { PostProvider as w, PostConsumer as v, Post as P } from "@devgateway/wp-react-lib";
4
+ import { useLocation as d, useParams as h } from "react-router";
5
+ const g = (t) => {
6
+ const { header: s, footer: n } = t, i = d(), e = h(), o = new URLSearchParams(i.search), a = o.get("preview"), p = e.type == "post" ? "posts" : e.type, c = o.get("_wpnonce");
7
+ return /* @__PURE__ */ r(m, { header: s, footer: n, children: /* @__PURE__ */ r(
8
+ w,
9
9
  {
10
10
  type: p,
11
11
  store: "preview",
12
12
  perPage: 1,
13
- view: i,
13
+ view: a,
14
14
  locale: e.lan,
15
- previewNonce: a,
15
+ previewNonce: c,
16
16
  previewId: e.id,
17
- children: /* @__PURE__ */ r(w, { children: /* @__PURE__ */ r(v, { preview: !0, showIntro: !0 }) })
17
+ children: /* @__PURE__ */ r(v, { children: /* @__PURE__ */ r(P, { preview: !0, showIntro: !0 }) })
18
18
  }
19
19
  ) });
20
20
  };
21
21
  export {
22
- y as default
22
+ g as default
23
23
  };
@@ -1,19 +1,19 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { PageProvider as a, PageConsumer as i, Page as s } from "@devgateway/wp-react-lib";
3
- import { useParams as m } from "react-router";
2
+ import { Page as i, PageProvider as s, PageConsumer as a } from "@devgateway/wp-react-lib";
3
+ import { useParams as c } from "react-router";
4
4
  import l from "../ResponsiveContainer.js";
5
- const f = ({ header: o, footer: n }) => {
6
- const { lan: t, slug: e } = m();
7
- return /* @__PURE__ */ r(
8
- a,
5
+ const P = ({ header: e, footer: n, pages: o } = {}) => {
6
+ const { lan: m, slug: t } = c();
7
+ return o ? /* @__PURE__ */ r(l, { header: e, footer: n, children: /* @__PURE__ */ r(i, { pages: typeof o == "object" ? [o] : o }) }) : /* @__PURE__ */ r(
8
+ s,
9
9
  {
10
- locale: t,
11
- slug: e,
12
- store: e,
13
- children: /* @__PURE__ */ r(l, { header: o, footer: n, children: /* @__PURE__ */ r(i, { children: /* @__PURE__ */ r(s, {}) }) })
10
+ locale: m,
11
+ slug: t,
12
+ store: t,
13
+ children: /* @__PURE__ */ r(l, { header: e, footer: n, children: /* @__PURE__ */ r(a, { children: /* @__PURE__ */ r(i, {}) }) })
14
14
  }
15
15
  );
16
16
  };
17
17
  export {
18
- f as default
18
+ P as default
19
19
  };
@@ -1,19 +1,16 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useParams as n } from "react-router";
3
- import i from "../ResponsiveContainer.js";
4
- import { PostProvider as m, PostConsumer as l, Post as a } from "@devgateway/wp-react-lib";
5
- const d = ({ header: t, footer: e }) => {
6
- const { lan: s, slug: r } = n();
7
- return /* @__PURE__ */ o(
8
- m,
9
- {
10
- slug: r,
11
- store: r,
12
- locale: s,
13
- children: /* @__PURE__ */ o(i, { header: t, footer: e, children: /* @__PURE__ */ o(l, { children: /* @__PURE__ */ o(a, {}) }) })
14
- }
15
- );
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useParams as t } from "react-router";
3
+ import "semantic-ui-react";
4
+ import { Post as m } from "@devgateway/wp-react-lib";
5
+ import "../../utils/AppMedia.js";
6
+ import "../Footer.js";
7
+ import "../Header.js";
8
+ import "react";
9
+ const g = ({ header: i, footer: e, posts: o } = {}) => {
10
+ const { lan: a, slug: p } = t();
11
+ if (o)
12
+ return /* @__PURE__ */ r(m, { posts: o });
16
13
  };
17
14
  export {
18
- d as default
15
+ g as default
19
16
  };
@@ -6,17 +6,19 @@ import { default as s } from "./containers/SlugContainer.js";
6
6
  import { default as i } from "./containers/SlugPostContainer.js";
7
7
  import { CustomizerWrapper as x } from "./Customizer.js";
8
8
  import { default as v } from "./Layout.js";
9
- import { default as g } from "./PreviewComponent.js";
10
- import { default as S } from "./Favicon.js";
11
- import { default as c } from "./Loading.js";
9
+ import { default as S } from "./PreviewComponent.js";
10
+ import { default as c } from "./Favicon.js";
11
+ import { default as R } from "./SSRFavicon.js";
12
+ import { default as y } from "./Loading.js";
12
13
  export {
13
14
  x as CustomizerWrapper,
14
- S as Favicon,
15
- c as Loading,
16
- g as PreviewComponent,
15
+ c as Favicon,
16
+ y as Loading,
17
+ S as PreviewComponent,
17
18
  p as PreviewPageContainer,
18
19
  l as PreviewTypeContainer,
19
20
  v as RootLayout,
21
+ R as SSRFavicon,
20
22
  a as ScrollToTop,
21
23
  s as SlugContainer,
22
24
  i as SlugPostContainer,