@devgateway/dvz-ui-react 1.3.2 → 1.3.4

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 (214) 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/ClassicHeader.js +1 -0
  4. package/dist/cjs/layout/FloatingMenuHeader.js +1 -0
  5. package/dist/cjs/layout/Layout.js +1 -1
  6. package/dist/cjs/layout/SSRFavicon.js +1 -0
  7. package/dist/cjs/layout/SearchControl.js +1 -1
  8. package/dist/cjs/layout/containers/PreviewTypeContainer.js +1 -1
  9. package/dist/cjs/layout/containers/SlugContainer.js +1 -1
  10. package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
  11. package/dist/cjs/layout/index.js +1 -1
  12. package/dist/esm/embeddable/time-line/mobile.js +138 -115
  13. package/dist/esm/embeddable/vertical-featuredtabs/index.js +1 -1
  14. package/dist/esm/layout/ClassicHeader.js +116 -0
  15. package/dist/esm/layout/FloatingMenuHeader.js +73 -0
  16. package/dist/esm/layout/Layout.js +35 -31
  17. package/dist/esm/layout/SSRFavicon.js +11 -0
  18. package/dist/esm/layout/SearchControl.js +18 -19
  19. package/dist/esm/layout/containers/PreviewTypeContainer.js +11 -11
  20. package/dist/esm/layout/containers/SlugContainer.js +11 -11
  21. package/dist/esm/layout/containers/SlugPostContainer.js +13 -16
  22. package/dist/esm/layout/index.js +37 -18
  23. package/dist/types/dvz-ui/src/layout/SSRFavicon.d.ts +5 -0
  24. package/dist/types/{layout → dvz-ui/src/layout}/containers/PreviewTypeContainer.d.ts +1 -1
  25. package/dist/types/dvz-ui/src/layout/containers/SlugContainer.d.ts +9 -0
  26. package/dist/types/dvz-ui/src/layout/containers/SlugPostContainer.d.ts +9 -0
  27. package/dist/types/dvz-ui/src/layout/index.d.ts +21 -0
  28. package/package.json +9 -9
  29. package/dist/types/layout/containers/SlugContainer.d.ts +0 -7
  30. package/dist/types/layout/containers/SlugPostContainer.d.ts +0 -7
  31. package/dist/types/layout/index.d.ts +0 -10
  32. /package/dist/types/{api → dvz-ui/src/api}/commons.d.ts +0 -0
  33. /package/dist/types/{conf → dvz-ui/src/conf}/config.json.d.ts +0 -0
  34. /package/dist/types/{conf → dvz-ui/src/conf}/index.d.ts +0 -0
  35. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/Dummy.d.ts +0 -0
  36. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/agree-and-download/index.d.ts +0 -0
  37. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/big-number/index.d.ts +0 -0
  38. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/big-number-trend/index.d.ts +0 -0
  39. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Background.d.ts +0 -0
  40. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Blood.d.ts +0 -0
  41. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Bounds.d.ts +0 -0
  42. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Brain.d.ts +0 -0
  43. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Ectopic.d.ts +0 -0
  44. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Erectile.d.ts +0 -0
  45. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Eyes.d.ts +0 -0
  46. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Head.d.ts +0 -0
  47. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Heart.d.ts +0 -0
  48. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Larynx.d.ts +0 -0
  49. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Liver.d.ts +0 -0
  50. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Lungs.d.ts +0 -0
  51. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/Stomach.d.ts +0 -0
  52. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/body/index.d.ts +0 -0
  53. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Bar.d.ts +0 -0
  54. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Bump.d.ts +0 -0
  55. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/CSVDataFrame.d.ts +0 -0
  56. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/DelayedRender.d.ts +0 -0
  57. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Diverging.d.ts +0 -0
  58. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Legends.d.ts +0 -0
  59. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Line.d.ts +0 -0
  60. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/LineLayer.d.ts +0 -0
  61. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Messages.d.ts +0 -0
  62. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Pie.d.ts +0 -0
  63. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Radar.d.ts +0 -0
  64. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Radar2.d.ts +0 -0
  65. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Sunburst.d.ts +0 -0
  66. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/Tooltip.d.ts +0 -0
  67. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/UserMeasures.d.ts +0 -0
  68. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/CategoricalColors.d.ts +0 -0
  69. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/ColorProvider.d.ts +0 -0
  70. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/Colors.d.ts +0 -0
  71. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/ManualColors.d.ts +0 -0
  72. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/PlainColor.d.ts +0 -0
  73. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/SequentialColors.d.ts +0 -0
  74. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/colors/SystemColors.d.ts +0 -0
  75. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Bar.d.ts +0 -0
  76. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Line.d.ts +0 -0
  77. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Pie.d.ts +0 -0
  78. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/Utils.d.ts +0 -0
  79. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/data/index.d.ts +0 -0
  80. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/index.d.ts +0 -0
  81. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/chart/prevalenceBuilder.d.ts +0 -0
  82. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/child-page-menu/index.d.ts +0 -0
  83. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/ChartTooltip.d.ts +0 -0
  84. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/MapTooltip.d.ts +0 -0
  85. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/Messages.d.ts +0 -0
  86. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/CategoricalColors.d.ts +0 -0
  87. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/ColorProvider.d.ts +0 -0
  88. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/Colors.d.ts +0 -0
  89. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/ManualColors.d.ts +0 -0
  90. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/PlainColor.d.ts +0 -0
  91. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/SequentialColors.d.ts +0 -0
  92. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/common/colors/SystemColors.d.ts +0 -0
  93. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/connected-templates/PostContent.d.ts +0 -0
  94. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/connected-templates/PostIntro.d.ts +0 -0
  95. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/BaseLayer.d.ts +0 -0
  96. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/BreaksStyles.d.ts +0 -0
  97. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/DataLayer.d.ts +0 -0
  98. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/FlowLayer.d.ts +0 -0
  99. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/GradientColors.d.ts +0 -0
  100. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/LatLongLayer.d.ts +0 -0
  101. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Layer.d.ts +0 -0
  102. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Legends.d.ts +0 -0
  103. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Map.d.ts +0 -0
  104. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/ProjectedContainer.d.ts +0 -0
  105. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Tooltip.d.ts +0 -0
  106. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/Utils.d.ts +0 -0
  107. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/ZoomControl.d.ts +0 -0
  108. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/d3Map/index.d.ts +0 -0
  109. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/CategoriesConsumer.d.ts +0 -0
  110. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/CategoriesProvider.d.ts +0 -0
  111. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataConsumer.d.ts +0 -0
  112. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataConsumerMap.d.ts +0 -0
  113. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataContext.d.ts +0 -0
  114. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/data/DataProvider.d.ts +0 -0
  115. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/datalabel/index.d.ts +0 -0
  116. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/download/dom-to-image.d.ts +0 -0
  117. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/download/index.d.ts +0 -0
  118. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/downloadPDF/index.d.ts +0 -0
  119. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/featuredtabs/index.d.ts +0 -0
  120. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter/_@deprecated_Components.d.ts +0 -0
  121. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter/index.d.ts +0 -0
  122. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filter-reset-button/index.d.ts +0 -0
  123. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/filters-apply-button/index.d.ts +0 -0
  124. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/inlinelist/index.d.ts +0 -0
  125. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/MapCSVDataFrame.d.ts +0 -0
  126. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/MapDataFrame.d.ts +0 -0
  127. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/index.d.ts +0 -0
  128. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/legend.d.ts +0 -0
  129. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/map/map.d.ts +0 -0
  130. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/measures/index.d.ts +0 -0
  131. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/menu/index.d.ts +0 -0
  132. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/new-time-line/index.d.ts +0 -0
  133. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/new-time-line/timeline.d.ts +0 -0
  134. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/newsletter/index.d.ts +0 -0
  135. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagegallery/index.d.ts +0 -0
  136. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagemodules/FloatingNavigator.d.ts +0 -0
  137. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/pagemodules/index.d.ts +0 -0
  138. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/parallax/index.d.ts +0 -0
  139. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/DropDownFilter.d.ts +0 -0
  140. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/Post.d.ts +0 -0
  141. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/index.d.ts +0 -0
  142. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/posts-with-filters/utils.d.ts +0 -0
  143. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/postscarousel/index.d.ts +0 -0
  144. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/data-api.d.ts +0 -0
  145. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/data.d.ts +0 -0
  146. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/embeddable-api.d.ts +0 -0
  147. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/reducers/embeddable.d.ts +0 -0
  148. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/Reference.d.ts +0 -0
  149. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/ReferencesList.d.ts +0 -0
  150. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/references/index.d.ts +0 -0
  151. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/sankeychart/Sankey.d.ts +0 -0
  152. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/sankeychart/index.d.ts +0 -0
  153. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/showcase/index.d.ts +0 -0
  154. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-chart/index.d.ts +0 -0
  155. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-dashboard/index-sdk.d.ts +0 -0
  156. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/superset-dashboard/index.d.ts +0 -0
  157. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/tabbedposts/index.d.ts +0 -0
  158. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/desktop.d.ts +0 -0
  159. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/index.d.ts +0 -0
  160. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/time-line/mobile.d.ts +0 -0
  161. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/tooltip/index.d.ts +0 -0
  162. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/utils/common.d.ts +0 -0
  163. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/utils/parseUtils.d.ts +0 -0
  164. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/vertical-featuredtabs/index.d.ts +0 -0
  165. /package/dist/types/{embeddable → dvz-ui/src/embeddable}/wrapped/index.d.ts +0 -0
  166. /package/dist/types/{index.d.ts → dvz-ui/src/index.d.ts} +0 -0
  167. /package/dist/types/{layout → dvz-ui/src/layout}/ClassicHeader.d.ts +0 -0
  168. /package/dist/types/{layout → dvz-ui/src/layout}/CustomSemanticSearch.d.ts +0 -0
  169. /package/dist/types/{layout → dvz-ui/src/layout}/Customizer.d.ts +0 -0
  170. /package/dist/types/{layout → dvz-ui/src/layout}/FavIcon.d.ts +0 -0
  171. /package/dist/types/{layout → dvz-ui/src/layout}/Favicon.d.ts +0 -0
  172. /package/dist/types/{layout → dvz-ui/src/layout}/FlexWrapDetector.d.ts +0 -0
  173. /package/dist/types/{layout → dvz-ui/src/layout}/FloatingMenuHeader.d.ts +0 -0
  174. /package/dist/types/{layout → dvz-ui/src/layout}/Footer.d.ts +0 -0
  175. /package/dist/types/{layout → dvz-ui/src/layout}/Header.d.ts +0 -0
  176. /package/dist/types/{layout → dvz-ui/src/layout}/LangSwitcher.d.ts +0 -0
  177. /package/dist/types/{layout → dvz-ui/src/layout}/Layout.d.ts +0 -0
  178. /package/dist/types/{layout → dvz-ui/src/layout}/Loading.d.ts +0 -0
  179. /package/dist/types/{layout → dvz-ui/src/layout}/PreviewComponent.d.ts +0 -0
  180. /package/dist/types/{layout → dvz-ui/src/layout}/ResponsiveContainer.d.ts +0 -0
  181. /package/dist/types/{layout → dvz-ui/src/layout}/ScrollTop.d.ts +0 -0
  182. /package/dist/types/{layout → dvz-ui/src/layout}/SearchControl.d.ts +0 -0
  183. /package/dist/types/{layout → dvz-ui/src/layout}/TopNavigator.d.ts +0 -0
  184. /package/dist/types/{layout → dvz-ui/src/layout}/containers/PreviewPageContainer.d.ts +0 -0
  185. /package/dist/types/{layout → dvz-ui/src/layout}/containers/index.d.ts +0 -0
  186. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/resize-observer.d.ts +0 -0
  187. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/screen-orientation.d.ts +0 -0
  188. /package/dist/types/{lib → dvz-ui/src/lib}/hooks/window-dimensions.d.ts +0 -0
  189. /package/dist/types/{lib → dvz-ui/src/lib}/index.d.ts +0 -0
  190. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/index.d.ts +0 -0
  191. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/providers/IntlProvider.d.ts +0 -0
  192. /package/dist/types/{lib → dvz-ui/src/lib}/react-intl-redux/providers/Provider.d.ts +0 -0
  193. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/index.d.ts +0 -0
  194. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/types.d.ts +0 -0
  195. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/getStateName.d.ts +0 -0
  196. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/getUnexpectedInvocationParameterMessage.d.ts +0 -0
  197. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/index.d.ts +0 -0
  198. /package/dist/types/{lib → dvz-ui/src/lib}/redux-immutable/utils/validateNextState.d.ts +0 -0
  199. /package/dist/types/{redux → dvz-ui/src/redux}/hooks.d.ts +0 -0
  200. /package/dist/types/{redux → dvz-ui/src/redux}/index.d.ts +0 -0
  201. /package/dist/types/{redux → dvz-ui/src/redux}/reducer.d.ts +0 -0
  202. /package/dist/types/{redux → dvz-ui/src/redux}/store.d.ts +0 -0
  203. /package/dist/types/{tools → dvz-ui/src/tools}/serviceWorker.d.ts +0 -0
  204. /package/dist/types/{tracker → dvz-ui/src/tracker}/index.d.ts +0 -0
  205. /package/dist/types/{tracker → dvz-ui/src/tracker}/withGoogleAnalytics.d.ts +0 -0
  206. /package/dist/types/{translations → dvz-ui/src/translations}/af.json.d.ts +0 -0
  207. /package/dist/types/{translations → dvz-ui/src/translations}/en.json.d.ts +0 -0
  208. /package/dist/types/{translations → dvz-ui/src/translations}/fr.json.d.ts +0 -0
  209. /package/dist/types/{translations → dvz-ui/src/translations}/index.d.ts +0 -0
  210. /package/dist/types/{utils → dvz-ui/src/utils}/AppMedia.d.ts +0 -0
  211. /package/dist/types/{utils → dvz-ui/src/utils}/countries.d.ts +0 -0
  212. /package/dist/types/{utils → dvz-ui/src/utils}/data.d.ts +0 -0
  213. /package/dist/types/{utils → dvz-ui/src/utils}/deviceType.d.ts +0 -0
  214. /package/dist/types/{utils → dvz-ui/src/utils}/semanticUtils.d.ts +0 -0
@@ -0,0 +1,116 @@
1
+ import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
+ import { Menu as a, Container as h, Image as j } from "semantic-ui-react";
3
+ import I, { useEffect as p, useState as M } from "react";
4
+ import { utils as C, MenuProvider as S, MediaProvider as y, MediaConsumer as z, MenuConsumer as _ } from "@devgateway/wp-react-lib";
5
+ import { injectIntl as v } from "react-intl";
6
+ import { useParams as x, Link as g, NavLink as E } from "react-router";
7
+ import F from "./SearchControl.js";
8
+ import $ from "./LangSwitcher.js";
9
+ const D = (r, l) => {
10
+ const i = [];
11
+ return r.items.forEach((s) => {
12
+ s.child_items ? s.child_items.forEach((t) => {
13
+ t.slug == l.slug && (i.push(s), i.push(t));
14
+ }) : s.slug == l.slug && s.url != "/" && i.push(s);
15
+ }), i;
16
+ }, H = (r, l) => r ? r.substr(r.indexOf("/wp") + 3).startsWith("/" + l) ? r.substr(r.indexOf("/wp") + 3) : "/" + l + r.substr(r.indexOf("/wp") + 3) : "", R = v(({ menu: r, intl: l }) => {
17
+ const i = x(), s = D(r, i);
18
+ return /* @__PURE__ */ e(I.Fragment, { children: s.filter((t) => t.url != "#wpm-languages").map((t) => t.child_items ? /* @__PURE__ */ m("span", { children: [
19
+ t.post_title,
20
+ " "
21
+ ] }) : /* @__PURE__ */ m(
22
+ "a",
23
+ {
24
+ className: t.slug == i.slug ? "active" : "",
25
+ href: C.replaceLink(t.url, l.locale),
26
+ children: [
27
+ " ",
28
+ t.post_title
29
+ ]
30
+ }
31
+ )) });
32
+ }), w = v(({
33
+ settings: r,
34
+ withIcons: l,
35
+ active: i,
36
+ menu: s,
37
+ onSetSelected: t,
38
+ selected: u,
39
+ intl: { locale: d }
40
+ }) => {
41
+ const k = x();
42
+ p(() => {
43
+ if (!u) {
44
+ const o = D(s, k).filter((c) => c.menu_item_parent == 0);
45
+ o && t(o[0]);
46
+ }
47
+ }, [s, t, u]);
48
+ const [f, N] = M(null);
49
+ return p(() => {
50
+ N(s);
51
+ }, [s]), p(() => {
52
+ if (r && r.menu_settings && f) {
53
+ const n = [], o = s.items.map((c) => (r.menu_settings && r.menu_settings["nav_menu_item[" + c.ID + "]"] === !1 && n.push(c.ID), r.menu_settings && r.menu_settings["nav_menu_item[" + c.ID + "]"] ? (r.menu_settings["nav_menu_item[" + c.ID + "]"], { ...c, ...r.menu_settings["nav_menu_item[" + c.ID + "]"] }) : c));
54
+ Object.keys(r.menu_settings).map((c) => {
55
+ const b = r.menu_settings[c];
56
+ if (b.type == "nav_menu_item") {
57
+ const L = /(-)?[0-9]+/g.exec(c), O = parseInt(L[0]);
58
+ o.find((P) => P.ID == O) || o.push(b.value);
59
+ }
60
+ }), N({ ...s, items: o.filter((c) => n.indexOf(c.ID) === -1) });
61
+ }
62
+ }, [r]), f && /* @__PURE__ */ e(I.Fragment, { children: f.items.filter((n) => n.url != "#wpm-languages").map((n) => /* @__PURE__ */ e(
63
+ a.Item,
64
+ {
65
+ as: g,
66
+ className: `divided ${n.child_items ? "has-child-items" : ""} ${u && u.ID == n.ID ? "selected" : ""} ${i == n.slug ? "active" : ""}`,
67
+ children: n.child_items ? /* @__PURE__ */ e("span", { onClick: (o) => t(n), children: n.title }) : /* @__PURE__ */ e(
68
+ g,
69
+ {
70
+ onClick: (o) => t(n),
71
+ to: n.type === "custom" ? C.replaceLink(n.url, d) : H(n.url, d),
72
+ children: n.title
73
+ }
74
+ )
75
+ }
76
+ )) });
77
+ }), B = ({ intl: r, settings: l }) => {
78
+ const [i, s] = M(), { slug: t } = x(), u = ({ media: d }) => d ? /* @__PURE__ */ e(j, { src: d.guid.rendered }) : /* @__PURE__ */ e("img", { className: "brand logo", size: "large", src: "/logo_full.png" });
79
+ return /* @__PURE__ */ e(I.Fragment, { children: /* @__PURE__ */ m(S, { slug: "main", locale: r.locale, children: [
80
+ /* @__PURE__ */ m(h, { fluid: !0, className: "header classic", children: [
81
+ /* @__PURE__ */ e(h, { fluid: !0, className: "background", children: /* @__PURE__ */ m(a, { className: "branding", text: !0, children: [
82
+ /* @__PURE__ */ e(a.Item, { children: /* @__PURE__ */ m(E, { to: "/", children: [
83
+ l.site_logo != 0 && /* @__PURE__ */ e(y, { id: l.site_logo, children: /* @__PURE__ */ e(z, { children: /* @__PURE__ */ e(u, {}) }) }),
84
+ !window.isCustomizedPreview && l.site_logo == 0 && /* @__PURE__ */ e("img", { className: "brand logo", size: "large", src: "/dc-logo_01.png" })
85
+ ] }) }),
86
+ /* @__PURE__ */ e(a.Item, { className: "divider", children: /* @__PURE__ */ e("div", {}) }),
87
+ /* @__PURE__ */ e(a.Item, { as: g, fitted: !0, href: "/", children: /* @__PURE__ */ e("div", { className: "site name", children: l.name }) }),
88
+ /* @__PURE__ */ e(a.Menu, { className: "pages", children: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(
89
+ w,
90
+ {
91
+ settings: l,
92
+ active: t,
93
+ selected: i,
94
+ onSetSelected: s
95
+ }
96
+ ) }) }),
97
+ /* @__PURE__ */ e(a.Item, { children: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e($, { locale: r.locale }) }) }),
98
+ /* @__PURE__ */ e(a.Item, { fitted: !0, children: /* @__PURE__ */ e(F, {}) })
99
+ ] }) }),
100
+ /* @__PURE__ */ e(h, { fluid: !0, className: "child", children: i && i.child_items && /* @__PURE__ */ e(a, { fluid: !0, text: !0, children: /* @__PURE__ */ e(
101
+ w,
102
+ {
103
+ active: t,
104
+ locale: r.locale,
105
+ withIcons: !0,
106
+ onSetSelected: (d) => null,
107
+ menu: { items: i.child_items }
108
+ }
109
+ ) }) })
110
+ ] }),
111
+ /* @__PURE__ */ e(h, { className: "url breadcrumbs", children: /* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(R, {}) }) })
112
+ ] }) });
113
+ }, X = v(B);
114
+ export {
115
+ X as default
116
+ };
@@ -0,0 +1,73 @@
1
+ import { jsx as e, jsxs as o } from "react/jsx-runtime";
2
+ import { Menu as n, Image as p, Popup as f } from "semantic-ui-react";
3
+ import { useState as I } from "react";
4
+ import { MenuProvider as N, MediaProvider as v, MediaConsumer as w, MenuConsumer as u } from "@devgateway/wp-react-lib";
5
+ import { injectIntl as _ } from "react-intl";
6
+ import x from "./SearchControl.js";
7
+ import M from "./LangSwitcher.js";
8
+ import { useParams as S } from "react-router";
9
+ const g = (r, i) => r ? r.substr(r.indexOf("/wp") + 3).startsWith("/" + i) ? r.substr(r.indexOf("/wp") + 3) : "/" + i + r.substr(r.indexOf("/wp") + 3) : "", b = (r) => {
10
+ const {
11
+ settings: i,
12
+ withIcons: m,
13
+ active: a,
14
+ menu: d,
15
+ onSetSelected: c,
16
+ selected: s,
17
+ locale: h
18
+ } = r;
19
+ return d.items.filter((t) => t.url != "#wpm-languages").map((t) => /* @__PURE__ */ o(
20
+ n.Item,
21
+ {
22
+ className: `divided ${t.child_items ? "has-child-items" : ""} ${s && s.ID == t.ID ? "selected" : ""} ${a == t.slug ? "active" : ""}`,
23
+ children: [
24
+ !t.child_items && /* @__PURE__ */ e("a", { onClick: (l) => c(t), href: g(t.url, h), children: t.title }),
25
+ t.child_items && /* @__PURE__ */ e(
26
+ f,
27
+ {
28
+ position: "top center",
29
+ className: "floating child",
30
+ positionFixed: !0,
31
+ hoverable: !0,
32
+ trigger: /* @__PURE__ */ e("span", { children: t.title }),
33
+ children: t.child_items.map((l) => /* @__PURE__ */ o(n.Item, { children: [
34
+ l.icon && /* @__PURE__ */ e("img", { className: "child icon", src: l.icon.url }),
35
+ /* @__PURE__ */ o("span", { children: [
36
+ " ",
37
+ /* @__PURE__ */ e("a", { onClick: (P) => c(t), href: g(l.url, h), children: l.title })
38
+ ] })
39
+ ] }))
40
+ }
41
+ )
42
+ ]
43
+ }
44
+ ));
45
+ }, C = ({
46
+ intl: { locale: r },
47
+ settings: i
48
+ }) => {
49
+ const [m, a] = I(), { slug: d } = S(), c = ({ media: s }) => s ? /* @__PURE__ */ e(p, { src: s.guid.rendered }) : /* @__PURE__ */ e("img", { className: "brand logo", size: "large", src: "/logo_full.png" });
50
+ return /* @__PURE__ */ e(N, { slug: "main", locale: r, children: /* @__PURE__ */ o(n, { className: "header floating branding", text: !0, children: [
51
+ /* @__PURE__ */ e(n.Item, { className: "logo", children: /* @__PURE__ */ o("a", { href: `/${r}`, children: [
52
+ i.site_logo != 0 && /* @__PURE__ */ e(v, { id: i.site_logo, children: /* @__PURE__ */ e(w, { children: /* @__PURE__ */ e(c, {}) }) }),
53
+ !window.isCustomizedPreview && i.site_logo == 0 && /* @__PURE__ */ e("img", { className: "brand logo", size: "large", src: "/dc-logo_01.png" })
54
+ ] }) }),
55
+ /* @__PURE__ */ e(n.Item, { className: "divider", children: /* @__PURE__ */ e("div", {}) }),
56
+ /* @__PURE__ */ e(n.Item, { className: "site name", fitted: !0, href: "/", children: i.name }),
57
+ /* @__PURE__ */ e(n.Item, { className: "pages", children: /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(
58
+ b,
59
+ {
60
+ settings: i,
61
+ active: d,
62
+ selected: m,
63
+ onSetSelected: a,
64
+ locale: r
65
+ }
66
+ ) }) }),
67
+ /* @__PURE__ */ e(n.Item, { className: "lang switcher", children: /* @__PURE__ */ e(u, { children: /* @__PURE__ */ e(M, { locale: r }) }) }),
68
+ /* @__PURE__ */ e(n.Item, { fitted: !0, children: /* @__PURE__ */ e(x, {}) })
69
+ ] }) });
70
+ }, L = _(C);
71
+ export {
72
+ L as default
73
+ };
@@ -1,45 +1,49 @@
1
- import { jsx as e, Fragment as p, jsxs as f } from "react/jsx-runtime";
2
- import { useEffect as m } from "react";
3
- import { useParams as d, useLocation as u, Navigate as a, Outlet as g } from "react-router";
4
- import { getComponentByNameIgnoreCase as h } from "../embeddable/index.js";
5
- import { injectIntl as v, IntlProvider as w } from "react-intl";
6
- import { AppContextProvider as C, SettingProvider as I, SettingsConsumer as L } from "@devgateway/wp-react-lib";
1
+ import { jsx as e, jsxs as f } from "react/jsx-runtime";
2
+ import { useState as u, useEffect as m } from "react";
3
+ import { useParams as d, useLocation as g, Navigate as a, Outlet as h } from "react-router";
4
+ import { getComponentByNameIgnoreCase as v } from "../embeddable/index.js";
5
+ import { IntlProvider as C } from "react-intl";
6
+ import { AppContextProvider as w, SettingProvider as I, SettingsConsumer as L } from "@devgateway/wp-react-lib";
7
7
  import { Provider as P } from "react-redux";
8
8
  import "semantic-ui-react";
9
9
  import "../utils/AppMedia.js";
10
10
  import "./Footer.js";
11
11
  import "./Header.js";
12
- import { CustomizerWrapper as E } from "./Customizer.js";
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";
12
+ import { CustomizerWrapper as y } from "./Customizer.js";
13
+ import { Config as E } from "../conf/index.js";
14
+ import * as N from "../translations/en.json.js";
15
+ import * as O from "../translations/fr.json.js";
16
+ import * as b from "../translations/af.json.js";
17
+ import { updateIntl as x } from "../lib/react-intl-redux/index.js";
19
18
  import "immutable";
20
- import { store as n } from "../redux/store.js";
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;
27
- console.log("defaultLocale", r);
28
- const o = t.lan, c = l.pathname;
29
- return console.log("pathParams", t), m(() => {
30
- process.env.NODE_ENV === "development" && (console.log("----------.env-----------"), console.log(process.env), console.log("----------.env-----------")), window && window.setTimeout(() => {
31
- if (window && window.location.hash) {
19
+ import { store as r } from "../redux/store.js";
20
+ import "./Favicon.js";
21
+ import "./CustomSemanticSearch.js";
22
+ import "./SearchControl.js";
23
+ import "./ClassicHeader.js";
24
+ import "./FloatingMenuHeader.js";
25
+ const n = {
26
+ en: N,
27
+ fr: O,
28
+ am: b
29
+ }, X = () => {
30
+ const i = d(), l = g(), t = E.DEFAULT_LOCALE, [S, p] = u(!1);
31
+ console.log("defaultLocale", t);
32
+ const o = i.lan, c = l.pathname;
33
+ return console.log("pathParams", JSON.stringify(i.lan)), m(() => {
34
+ p(!0), process.env.NODE_ENV === "development" && (console.log("----------.env-----------"), console.log(process.env), console.log("----------.env-----------")), typeof window < "u" && window.setTimeout(() => {
35
+ if (window.location.hash) {
32
36
  const s = document.getElementById(window.location.hash.substring(1));
33
37
  s && s.scrollIntoView({ behavior: "auto", block: "start" });
34
38
  }
35
39
  }, 2e3);
36
40
  }, []), m(() => {
37
- n.dispatch(N({ locale: o, formats: {}, messages: i[o ?? "en"] }));
38
- }, [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, {}) }),
40
- /* @__PURE__ */ e(g, {})
41
- ] }) }) }) }, o) }) : /* @__PURE__ */ e(a, { to: `/${r}${c}`, replace: !0 }) : /* @__PURE__ */ e(a, { to: r, replace: !0 });
41
+ r.dispatch(x({ locale: o, formats: {}, messages: n[o ?? "en"] }));
42
+ }, [o]), o ? Object.keys(n).includes(o) ? /* @__PURE__ */ e(P, { store: r, children: /* @__PURE__ */ e(C, { locale: o, messages: n[o], children: /* @__PURE__ */ e(w, { getComponent: v, store: r, locale: o, children: /* @__PURE__ */ e(I, { locale: o, changeUUID: null, children: /* @__PURE__ */ f(L, { children: [
43
+ /* @__PURE__ */ e(y, {}),
44
+ /* @__PURE__ */ e(h, {})
45
+ ] }) }) }) }, o) }) : /* @__PURE__ */ e(a, { to: `/${t}${c}`, replace: !0 }) : /* @__PURE__ */ e(a, { to: t, replace: !0 });
42
46
  };
43
47
  export {
44
- J as default
48
+ X as default
45
49
  };
@@ -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,10 +1,9 @@
1
1
  import { jsx as t, jsxs as S, Fragment as C } from "react/jsx-runtime";
2
2
  import { useState as v, useEffect as w, useRef as L } from "react";
3
3
  import { utils as y, SearchProvider as E, SearchConsumer as T } from "@devgateway/wp-react-lib";
4
- import b from "./CustomSemanticSearch.js";
5
- import { createPortal as z } from "react-dom";
6
- import { Icon as P } from "semantic-ui-react";
7
- import { injectIntl as I, IntlProvider as _ } from "react-intl";
4
+ import { createPortal as b } from "react-dom";
5
+ import { Icon as z } from "semantic-ui-react";
6
+ import { injectIntl as I, IntlProvider as P } from "react-intl";
8
7
  const x = (r, a) => {
9
8
  if (!a) return r;
10
9
  const s = new RegExp(`(${a})`, "gi");
@@ -40,7 +39,7 @@ const x = (r, a) => {
40
39
  "div",
41
40
  {
42
41
  className: "has-standard-12-font-size",
43
- onClick: (H) => document.location.href = m,
42
+ onClick: (D) => document.location.href = m,
44
43
  children: [
45
44
  /* @__PURE__ */ t(
46
45
  "h5",
@@ -75,7 +74,7 @@ const x = (r, a) => {
75
74
  }
76
75
  );
77
76
  }
78
- ), F = ({ results: r, meta: a, perPage: s, intl: i, searchTerm: e }) => {
77
+ ), _ = ({ results: r, meta: a, perPage: s, intl: i, searchTerm: e }) => {
79
78
  const o = a ? a["x-wp-total"] : 0;
80
79
  return a && a["x-wp-totalpages"], /* @__PURE__ */ S("div", { id: "float-results-container", children: [
81
80
  /* @__PURE__ */ t("span", { className: "float-results-header", children: i.formatMessage(
@@ -87,7 +86,7 @@ const x = (r, a) => {
87
86
  ) }),
88
87
  r.map((c) => /* @__PURE__ */ t(N, { ...c, searchTerm: e }, c.ID))
89
88
  ] });
90
- }, j = ({
89
+ }, F = ({
91
90
  onSearch: r,
92
91
  perPage: a,
93
92
  loading: s,
@@ -108,7 +107,7 @@ const x = (r, a) => {
108
107
  r(c.target.value);
109
108
  }
110
109
  }
111
- )), k = ({
110
+ )), j = ({
112
111
  onSearch: r,
113
112
  onSetSelected: a,
114
113
  perPage: s,
@@ -143,13 +142,13 @@ const x = (r, a) => {
143
142
  id: "ui-float-search",
144
143
  className: "ui float-search",
145
144
  onMouseOver: h,
146
- children: /* @__PURE__ */ t(P, { name: "search", size: "small" })
145
+ children: /* @__PURE__ */ t(z, { name: "search", size: "small" })
147
146
  }
148
147
  ),
149
- n.current && z(
148
+ n.current && b(
150
149
  p ? /* @__PURE__ */ S("div", { onMouseLeave: g, children: [
151
150
  /* @__PURE__ */ t("div", { className: "float-search-container", children: /* @__PURE__ */ t(
152
- j,
151
+ F,
153
152
  {
154
153
  onSearch: r,
155
154
  perPage: s,
@@ -160,8 +159,8 @@ const x = (r, a) => {
160
159
  searchTerm: l
161
160
  }
162
161
  ) }),
163
- e && e.length > 0 && /* @__PURE__ */ t(_, { locale: c, children: /* @__PURE__ */ t(
164
- F,
162
+ e && e.length > 0 && /* @__PURE__ */ t(P, { locale: c, children: /* @__PURE__ */ t(
163
+ _,
165
164
  {
166
165
  results: e,
167
166
  meta: o,
@@ -174,7 +173,7 @@ const x = (r, a) => {
174
173
  n.current
175
174
  )
176
175
  ] });
177
- }, D = ({ onSearch: r, perPage: a, loading: s, results: i, meta: e, intl: o }) => {
176
+ }, k = ({ onSearch: r, perPage: a, loading: s, results: i, meta: e, intl: o }) => {
178
177
  const c = e ? e["x-wp-total"] : 0, u = e ? e["x-wp-totalpages"] : 0, [l, p] = v("");
179
178
  w(() => {
180
179
  const n = setTimeout(() => {
@@ -184,7 +183,7 @@ const x = (r, a) => {
184
183
  }, [l]);
185
184
  const f = (n) => /* @__PURE__ */ t(N, { ...n, searchTerm: l });
186
185
  return /* @__PURE__ */ t(
187
- b,
186
+ CustomSemanticSearch,
188
187
  {
189
188
  value: l,
190
189
  loading: s,
@@ -206,7 +205,7 @@ const x = (r, a) => {
206
205
  searchTerm: l
207
206
  }
208
207
  );
209
- }, G = I((r) => {
208
+ }, Q = I((r) => {
210
209
  const { intl: a, onSetSelected: s } = r, [i, e] = v(""), [o, c] = v(!1);
211
210
  w(() => {
212
211
  const l = () => {
@@ -215,7 +214,7 @@ const x = (r, a) => {
215
214
  return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
216
215
  }, []);
217
216
  const u = r.settings.react_search_type === "floating" || o ? /* @__PURE__ */ t(
218
- k,
217
+ j,
219
218
  {
220
219
  onSetSelected: s,
221
220
  onSearch: e,
@@ -224,7 +223,7 @@ const x = (r, a) => {
224
223
  searchTerm: i
225
224
  }
226
225
  ) : /* @__PURE__ */ t(
227
- D,
226
+ k,
228
227
  {
229
228
  onSetSelected: s,
230
229
  onSearch: e,
@@ -235,5 +234,5 @@ const x = (r, a) => {
235
234
  return /* @__PURE__ */ t(E, { search: i, perPage: 5, locale: a.locale, children: /* @__PURE__ */ t(T, { children: u }) });
236
235
  });
237
236
  export {
238
- G as default
237
+ Q as default
239
238
  };
@@ -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
  };
@@ -1,24 +1,43 @@
1
- import e from "./ResponsiveContainer.js";
2
- import { default as a } from "./ScrollTop.js";
1
+ import o from "./ResponsiveContainer.js";
2
+ import { default as t } from "./ScrollTop.js";
3
3
  import { default as p } from "./containers/PreviewPageContainer.js";
4
- import { default as l } from "./containers/PreviewTypeContainer.js";
5
- import { default as s } from "./containers/SlugContainer.js";
6
- import { default as i } from "./containers/SlugPostContainer.js";
7
- import { CustomizerWrapper as x } from "./Customizer.js";
8
- import { default as v } from "./Layout.js";
4
+ import { default as s } from "./containers/PreviewTypeContainer.js";
5
+ import { default as u } from "./containers/SlugContainer.js";
6
+ import { default as n } from "./containers/SlugPostContainer.js";
7
+ import { CustomizerWrapper as i } from "./Customizer.js";
8
+ import { default as c } from "./Layout.js";
9
9
  import { default as g } from "./PreviewComponent.js";
10
- import { default as S } from "./Favicon.js";
11
- import { default as c } from "./Loading.js";
10
+ import { default as F } from "./Favicon.js";
11
+ import { default as w } from "./SSRFavicon.js";
12
+ import { default as H } from "./Loading.js";
13
+ import { default as R } from "./CustomSemanticSearch.js";
14
+ import { default as y } from "./Header.js";
15
+ import { default as z } from "./SearchControl.js";
16
+ import { default as M } from "./LangSwitcher.js";
17
+ import { default as j } from "./Footer.js";
18
+ import { default as q } from "./ClassicHeader.js";
19
+ import { default as B } from "./FlexWrapDetector.js";
20
+ import { default as G } from "./FloatingMenuHeader.js";
12
21
  export {
13
- x as CustomizerWrapper,
14
- S as Favicon,
15
- c as Loading,
22
+ q as ClassicHeader,
23
+ R as CustomSemanticSearch,
24
+ i as CustomizerWrapper,
25
+ F as Favicon,
26
+ B as FlexWrapDetector,
27
+ G as FloatingMenuHeader,
28
+ j as Footer,
29
+ y as Header,
30
+ M as LangSwitcher,
31
+ H as Loading,
16
32
  g as PreviewComponent,
17
33
  p as PreviewPageContainer,
18
- l as PreviewTypeContainer,
19
- v as RootLayout,
20
- a as ScrollToTop,
21
- s as SlugContainer,
22
- i as SlugPostContainer,
23
- e as default
34
+ s as PreviewTypeContainer,
35
+ o as ResponsiveContainer,
36
+ c as RootLayout,
37
+ w as SSRFavicon,
38
+ t as ScrollToTop,
39
+ z as SearchControl,
40
+ u as SlugContainer,
41
+ n as SlugPostContainer,
42
+ o as default
24
43
  };
@@ -0,0 +1,5 @@
1
+ import { default as React } from 'react';
2
+ declare function SSRFavicon({ siteLogo }: {
3
+ siteLogo: string;
4
+ }): React.JSX.Element;
5
+ export default SSRFavicon;
@@ -3,5 +3,5 @@ interface PreviewTypeContainerProps {
3
3
  header?: React.ReactNode;
4
4
  footer?: React.ReactNode;
5
5
  }
6
- declare const PreviewTypeContainer: ({ header, footer }: PreviewTypeContainerProps) => React.JSX.Element;
6
+ declare const PreviewTypeContainer: React.FC<PreviewTypeContainerProps>;
7
7
  export default PreviewTypeContainer;
@@ -0,0 +1,9 @@
1
+ import { PostType } from '@devgateway/wp-react-lib';
2
+ import { default as React } from 'react';
3
+ interface SlugContainerProps {
4
+ header?: React.ReactNode;
5
+ footer?: React.ReactNode;
6
+ pages?: PostType;
7
+ }
8
+ declare const SlugContainer: ({ header, footer, pages }?: SlugContainerProps) => React.JSX.Element;
9
+ export default SlugContainer;
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ import { PostType } from '@devgateway/wp-react-lib';
3
+ interface SlugPostContainerProps {
4
+ header?: React.ReactNode;
5
+ footer?: React.ReactNode;
6
+ posts?: PostType;
7
+ }
8
+ declare const SlugPostContainer: ({ header, footer, posts }?: SlugPostContainerProps) => React.JSX.Element | undefined;
9
+ export default SlugPostContainer;
@@ -0,0 +1,21 @@
1
+ import { default as ResponsiveContainer } from './ResponsiveContainer';
2
+ import { default as ScrollToTop } from './ScrollTop';
3
+ export * from './containers';
4
+ export * from './Customizer';
5
+ export default ResponsiveContainer;
6
+ export { ScrollToTop };
7
+ export { default as RootLayout } from './Layout';
8
+ export { default as PreviewComponent } from './PreviewComponent';
9
+ export { default as Favicon } from './Favicon';
10
+ export { default as SSRFavicon } from './SSRFavicon';
11
+ export { default as Loading } from './Loading';
12
+ export { default as ResponsiveContainer } from './ResponsiveContainer';
13
+ export { default as CustomSemanticSearch } from './CustomSemanticSearch';
14
+ export { default as Header } from './Header';
15
+ export { default as SearchControl } from './SearchControl';
16
+ export { default as LangSwitcher } from './LangSwitcher';
17
+ export { default as Footer } from './Footer';
18
+ export { default as ClassicHeader } from './ClassicHeader';
19
+ export * from './Customizer';
20
+ export { default as FlexWrapDetector } from './FlexWrapDetector';
21
+ export { default as FloatingMenuHeader } from './FloatingMenuHeader';