@devgateway/dvz-ui-react 1.6.20 → 1.7.1

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 (156) hide show
  1. package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
  2. package/dist/cjs/_virtual/debounce.js +1 -0
  3. package/dist/cjs/embeddable/big-filter/BigNumberGroup.js +1 -0
  4. package/dist/cjs/embeddable/big-filter/BigNumberItem.js +1 -0
  5. package/dist/cjs/embeddable/big-filter/DataProvider.js +1 -0
  6. package/dist/cjs/embeddable/big-filter/index.js +1 -0
  7. package/dist/cjs/embeddable/big-number/index.js +1 -1
  8. package/dist/cjs/embeddable/big-number-trend/Alternative.js +1 -0
  9. package/dist/cjs/embeddable/big-number-trend/Classic.js +1 -0
  10. package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
  11. package/dist/cjs/embeddable/chart/Bar.js +1 -1
  12. package/dist/cjs/embeddable/chart/Line.js +1 -1
  13. package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
  14. package/dist/cjs/embeddable/chart/data/Line.js +1 -1
  15. package/dist/cjs/embeddable/chart/data/Utils.js +1 -1
  16. package/dist/cjs/embeddable/chart/index.js +1 -1
  17. package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
  18. package/dist/cjs/embeddable/d3Map/BreaksStyles.js +1 -1
  19. package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
  20. package/dist/cjs/embeddable/d3Map/FlowLayer.js +1 -1
  21. package/dist/cjs/embeddable/d3Map/GradientColors.js +1 -1
  22. package/dist/cjs/embeddable/d3Map/LatLongLayer.js +1 -1
  23. package/dist/cjs/embeddable/d3Map/Layer.js +1 -1
  24. package/dist/cjs/embeddable/d3Map/Legends.js +1 -1
  25. package/dist/cjs/embeddable/d3Map/ProjectedContainer.js +1 -1
  26. package/dist/cjs/embeddable/d3Map/Utils.js +1 -1
  27. package/dist/cjs/embeddable/d3Map/ZoomControl.js +1 -1
  28. package/dist/cjs/embeddable/d3Map/index.js +1 -1
  29. package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
  30. package/dist/cjs/embeddable/data/D3MapDataConsumer.js +1 -0
  31. package/dist/cjs/embeddable/data/D3MapDataProvider.js +1 -0
  32. package/dist/cjs/embeddable/data/DataContext.js +1 -1
  33. package/dist/cjs/embeddable/data/DataProvider.js +1 -1
  34. package/dist/cjs/embeddable/data-paragraph/index.js +1 -0
  35. package/dist/cjs/embeddable/download/dom-to-image.js +2 -2
  36. package/dist/cjs/embeddable/download/index.js +5 -5
  37. package/dist/cjs/embeddable/filter/index.js +1 -1
  38. package/dist/cjs/embeddable/grouped-bars/GroupedBars.js +1 -0
  39. package/dist/cjs/embeddable/grouped-bars/index.js +1 -0
  40. package/dist/cjs/embeddable/index.js +1 -1
  41. package/dist/cjs/embeddable/posts-filter/CategoricalFilter.js +1 -1
  42. package/dist/cjs/embeddable/reducers/data-api.js +1 -1
  43. package/dist/cjs/embeddable/reducers/data.js +1 -1
  44. package/dist/cjs/embeddable/utils/common.js +1 -1
  45. package/dist/cjs/index.js +1 -1
  46. package/dist/cjs/layout/Customizer.js +1 -1
  47. package/dist/cjs/layout/SearchControl.js +1 -1
  48. package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
  49. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +1 -0
  50. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +1 -0
  51. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +1 -0
  52. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +1 -0
  53. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +1 -0
  54. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +1 -0
  55. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +1 -0
  56. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +1 -0
  57. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +1 -0
  58. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +1 -0
  59. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +1 -0
  60. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +1 -0
  61. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +1 -0
  62. package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +1 -0
  63. package/dist/cjs/styles.css +1 -1
  64. package/dist/esm/_virtual/_commonjsHelpers.js +8 -0
  65. package/dist/esm/_virtual/debounce.js +7 -0
  66. package/dist/esm/embeddable/big-filter/BigNumberGroup.js +129 -0
  67. package/dist/esm/embeddable/big-filter/BigNumberItem.js +107 -0
  68. package/dist/esm/embeddable/big-filter/DataProvider.js +53 -0
  69. package/dist/esm/embeddable/big-filter/index.js +130 -0
  70. package/dist/esm/embeddable/big-number/index.js +154 -102
  71. package/dist/esm/embeddable/big-number-trend/Alternative.js +227 -0
  72. package/dist/esm/embeddable/big-number-trend/Classic.js +190 -0
  73. package/dist/esm/embeddable/big-number-trend/index.js +12 -147
  74. package/dist/esm/embeddable/chart/Bar.js +450 -395
  75. package/dist/esm/embeddable/chart/Line.js +216 -184
  76. package/dist/esm/embeddable/chart/data/Bar.js +16 -18
  77. package/dist/esm/embeddable/chart/data/Line.js +27 -24
  78. package/dist/esm/embeddable/chart/data/Utils.js +3 -1
  79. package/dist/esm/embeddable/chart/index.js +168 -162
  80. package/dist/esm/embeddable/d3Map/BaseLayer.js +25 -28
  81. package/dist/esm/embeddable/d3Map/BreaksStyles.js +17 -10
  82. package/dist/esm/embeddable/d3Map/DataLayer.js +290 -289
  83. package/dist/esm/embeddable/d3Map/FlowLayer.js +122 -136
  84. package/dist/esm/embeddable/d3Map/GradientColors.js +27 -20
  85. package/dist/esm/embeddable/d3Map/LatLongLayer.js +62 -62
  86. package/dist/esm/embeddable/d3Map/Layer.js +31 -27
  87. package/dist/esm/embeddable/d3Map/Legends.js +204 -190
  88. package/dist/esm/embeddable/d3Map/ProjectedContainer.js +1 -3
  89. package/dist/esm/embeddable/d3Map/Utils.js +12 -8
  90. package/dist/esm/embeddable/d3Map/ZoomControl.js +41 -41
  91. package/dist/esm/embeddable/d3Map/index.js +135 -117
  92. package/dist/esm/embeddable/data/CategoriesProvider.js +39 -26
  93. package/dist/esm/embeddable/data/D3MapDataConsumer.js +7 -0
  94. package/dist/esm/embeddable/data/D3MapDataProvider.js +83 -0
  95. package/dist/esm/embeddable/data/DataContext.js +2 -2
  96. package/dist/esm/embeddable/data/DataProvider.js +124 -55
  97. package/dist/esm/embeddable/data-paragraph/index.js +168 -0
  98. package/dist/esm/embeddable/download/dom-to-image.js +163 -148
  99. package/dist/esm/embeddable/download/index.js +102 -76
  100. package/dist/esm/embeddable/filter/index.js +335 -298
  101. package/dist/esm/embeddable/grouped-bars/GroupedBars.js +549 -0
  102. package/dist/esm/embeddable/grouped-bars/index.js +16 -0
  103. package/dist/esm/embeddable/index.js +33 -30
  104. package/dist/esm/embeddable/posts-filter/CategoricalFilter.js +18 -18
  105. package/dist/esm/embeddable/reducers/data-api.js +39 -35
  106. package/dist/esm/embeddable/reducers/data.js +141 -182
  107. package/dist/esm/embeddable/utils/common.js +3 -3
  108. package/dist/esm/index.js +111 -94
  109. package/dist/esm/layout/Customizer.js +10 -9
  110. package/dist/esm/layout/SearchControl.js +103 -113
  111. package/dist/esm/layout/containers/SlugPostContainer.js +1 -1
  112. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +11 -0
  113. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +16 -0
  114. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +14 -0
  115. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +11 -0
  116. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +21 -0
  117. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +13 -0
  118. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +11 -0
  119. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +15 -0
  120. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +60 -0
  121. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +13 -0
  122. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +12 -0
  123. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +15 -0
  124. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +13 -0
  125. package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +28 -0
  126. package/dist/esm/styles.css +1 -1
  127. package/dist/types/embeddable/big-filter/BigNumberGroup.d.ts +3 -0
  128. package/dist/types/embeddable/big-filter/BigNumberItem.d.ts +2 -0
  129. package/dist/types/embeddable/big-filter/DataProvider.d.ts +7 -0
  130. package/dist/types/embeddable/big-filter/index.d.ts +5 -0
  131. package/dist/types/embeddable/big-number-trend/Alternative.d.ts +5 -0
  132. package/dist/types/embeddable/big-number-trend/Classic.d.ts +5 -0
  133. package/dist/types/embeddable/big-number-trend/index.d.ts +2 -4
  134. package/dist/types/embeddable/chart/Bar.d.ts +3 -0
  135. package/dist/types/embeddable/chart/Line.d.ts +6 -0
  136. package/dist/types/embeddable/d3Map/GradientColors.d.ts +6 -2
  137. package/dist/types/embeddable/d3Map/Layer.d.ts +1 -1
  138. package/dist/types/embeddable/d3Map/Utils.d.ts +1 -1
  139. package/dist/types/embeddable/data/D3MapDataProvider.d.ts +7 -0
  140. package/dist/types/embeddable/data/index.d.ts +6 -0
  141. package/dist/types/embeddable/data-paragraph/index.d.ts +5 -0
  142. package/dist/types/embeddable/filter/index.d.ts +13 -1
  143. package/dist/types/embeddable/grouped-bars/GroupedBars.d.ts +5 -0
  144. package/dist/types/embeddable/grouped-bars/index.d.ts +3 -0
  145. package/dist/types/embeddable/reducers/data-api.d.ts +5 -0
  146. package/dist/types/embeddable/reducers/data.d.ts +16 -9
  147. package/dist/types/embeddable/utils/index.d.ts +1 -0
  148. package/dist/types/embeddable/utils/parseUtils.d.ts +0 -6
  149. package/dist/types/index.d.ts +6 -0
  150. package/dist/types/layout/Customizer.d.ts +1 -0
  151. package/dist/types/layout/containers/PageContainer.d.ts +8 -0
  152. package/dist/types/layout/containers/PostContainer.d.ts +0 -0
  153. package/dist/types/layout/index.d.ts +1 -0
  154. package/dist/types/utils/Logger.d.ts +1 -0
  155. package/package.json +3 -2
  156. /package/dist/types/embeddable/data/{DataConsumerMap.d.ts → D3MapDataConsumer.d.ts} +0 -0
package/dist/esm/index.js CHANGED
@@ -1,104 +1,121 @@
1
- import { components as n, customizer as s, getComponentByNameIgnoreCase as p, reducers as m } from "./embeddable/index.js";
2
- import { Config as l } from "./conf/index.js";
3
- import { default as u } from "./layout/ResponsiveContainer.js";
4
- import { default as c } from "./layout/ScrollTop.js";
5
- import { default as C } from "./layout/containers/PreviewPageContainer.js";
6
- import { default as P } from "./layout/containers/PreviewTypeContainer.js";
7
- import { default as h } from "./layout/containers/SlugContainer.js";
8
- import { default as v } from "./layout/containers/SlugPostContainer.js";
9
- import { CustomizerWrapper as A } from "./layout/Customizer.js";
10
- import { default as R } from "./layout/Layout.js";
11
- import { default as w } from "./layout/PreviewComponent.js";
12
- import { default as F } from "./layout/Favicon.js";
13
- import { default as M } from "./layout/SSRFavicon.js";
14
- import { default as O } from "./layout/Loading.js";
15
- import { default as D } from "./layout/CustomSemanticSearch.js";
16
- import { default as z } from "./layout/Header.js";
17
- import { default as K } from "./layout/SearchControl.js";
18
- import { default as V } from "./layout/LangSwitcher.js";
19
- import { default as _ } from "./layout/Footer.js";
20
- import { default as q } from "./layout/ClassicHeader.js";
21
- import { default as J } from "./layout/FlexWrapDetector.js";
22
- import { default as X } from "./layout/FloatingMenuHeader.js";
23
- import { withTracker as $ } from "./tracker/withGoogleAnalytics.js";
24
- import { clearInternalTrafficCookie as re, isInternalTrafficEnabled as oe, setInternalTrafficCookie as te, validateToken as ae } from "./tracker/internalTrafficUtils.js";
25
- import { default as ne } from "./tracker/InternalTrafficToggle.js";
26
- import { store as pe } from "./redux/store.js";
27
- import { useAppDispatch as ie, useAppSelector as le } from "./redux/hooks.js";
28
- import { UPDATE as ue, initialState as xe, intlReducer as ce, updateIntl as Te } from "./lib/react-intl-redux/index.js";
29
- import { combineReducers as ge } from "./lib/redux-immutable/index.js";
1
+ import { components as i, customizer as l, getComponentByNameIgnoreCase as d, reducers as x } from "./embeddable/index.js";
2
+ import { Config as c } from "./conf/index.js";
3
+ import { default as C } from "./layout/ResponsiveContainer.js";
4
+ import { default as P } from "./layout/ScrollTop.js";
5
+ import { default as h } from "./layout/containers/PreviewPageContainer.js";
6
+ import { default as I } from "./layout/containers/PreviewTypeContainer.js";
7
+ import { default as A } from "./layout/containers/SlugContainer.js";
8
+ import { default as D } from "./layout/containers/SlugPostContainer.js";
9
+ import { CustomizerWrapper as k } from "./layout/Customizer.js";
10
+ import { default as E } from "./layout/Layout.js";
11
+ import { default as L } from "./layout/PreviewComponent.js";
12
+ import { default as N } from "./layout/Favicon.js";
13
+ import { default as b } from "./layout/SSRFavicon.js";
14
+ import { default as z } from "./layout/Loading.js";
15
+ import { default as K } from "./layout/CustomSemanticSearch.js";
16
+ import { default as J } from "./layout/Header.js";
17
+ import { default as Y } from "./layout/SearchControl.js";
18
+ import { default as j } from "./layout/LangSwitcher.js";
19
+ import { default as G } from "./layout/Footer.js";
20
+ import { default as X } from "./layout/ClassicHeader.js";
21
+ import { default as $ } from "./layout/FlexWrapDetector.js";
22
+ import { default as re } from "./layout/FloatingMenuHeader.js";
23
+ import { withTracker as te } from "./tracker/withGoogleAnalytics.js";
24
+ import { clearInternalTrafficCookie as fe, isInternalTrafficEnabled as se, setInternalTrafficCookie as pe, validateToken as me } from "./tracker/internalTrafficUtils.js";
25
+ import { default as ie } from "./tracker/InternalTrafficToggle.js";
26
+ import { store as de } from "./redux/store.js";
27
+ import { useAppDispatch as ue, useAppSelector as ce } from "./redux/hooks.js";
28
+ import { UPDATE as Ce, initialState as ge, intlReducer as Pe, updateIntl as Se } from "./lib/react-intl-redux/index.js";
29
+ import { combineReducers as ve } from "./lib/redux-immutable/index.js";
30
30
  import * as e from "./translations/en.json.js";
31
31
  import * as r from "./translations/fr.json.js";
32
32
  import * as o from "./translations/af.json.js";
33
33
  import * as t from "./translations/am.json.js";
34
- import { COUNTRY_OPTIONS as Se } from "./countries.js";
35
- import { decodeHtmlEntitiesToHtml as Ie, decodeHtmlEntitiesToText as ve, stringToArray as ye, toBoolean as Ae, toNumber as He, uriStringToArray as Re } from "./utils/data.js";
36
- import { Media as we, MediaContextProvider as Ee, mediaStyle as Fe } from "./utils/AppMedia.js";
37
- import { getUnhandledProps as Me, htmlImageProps as Ne, htmlInputAttrs as Oe, htmlInputEvents as be, htmlInputProps as De, partitionHTMLProps as Ue, useKeyOnly as ze, useValueAndKey as Be } from "./utils/semanticUtils.js";
38
- import { default as We } from "./lib/react-intl-redux/providers/Provider.js";
39
- import { default as Ye } from "./lib/react-intl-redux/providers/IntlProvider.js";
34
+ import { COUNTRY_OPTIONS as ye } from "./countries.js";
35
+ import { decodeHtmlEntitiesToHtml as He, decodeHtmlEntitiesToText as De, stringToArray as Re, toBoolean as ke, toNumber as we, uriStringToArray as Ee } from "./utils/data.js";
36
+ import { Media as Le, MediaContextProvider as Me, mediaStyle as Ne } from "./utils/AppMedia.js";
37
+ import { getUnhandledProps as be, htmlImageProps as Ue, htmlInputAttrs as ze, htmlInputEvents as Be, htmlInputProps as Ke, partitionHTMLProps as We, useKeyOnly as Je, useValueAndKey as Ve } from "./utils/semanticUtils.js";
38
+ import { default as _e } from "./embeddable/data/DataConsumer.js";
39
+ import { default as qe } from "./embeddable/data/DataProvider.js";
40
+ import { CategoriesContext as Qe, DataContext as Xe, PostsContext as Ze } from "./embeddable/data/DataContext.js";
41
+ import "react/jsx-runtime";
42
+ import "react";
43
+ import "./embeddable/data/CategoriesProvider.js";
44
+ import { compareJsonProps as er, decode as rr, parse as or } from "./embeddable/utils/parseUtils.js";
45
+ import * as p from "./embeddable/reducers/data.js";
46
+ import { default as ar } from "./lib/react-intl-redux/providers/Provider.js";
47
+ import { default as sr } from "./lib/react-intl-redux/providers/IntlProvider.js";
40
48
  export {
41
- Se as COUNTRY_OPTIONS,
42
- q as ClassicHeader,
43
- l as Config,
44
- D as CustomSemanticSearch,
45
- A as CustomizerWrapper,
46
- F as Favicon,
47
- J as FlexWrapDetector,
48
- X as FloatingMenuHeader,
49
- _ as Footer,
50
- z as Header,
51
- ne as InternalTrafficToggle,
52
- Ye as IntlProvider,
53
- V as LangSwitcher,
54
- O as Loading,
55
- we as Media,
56
- Ee as MediaContextProvider,
57
- w as PreviewComponent,
58
- C as PreviewPageContainer,
59
- P as PreviewTypeContainer,
60
- We as Provider,
61
- u as ResponsiveContainer,
62
- R as RootLayout,
63
- M as SSRFavicon,
64
- c as ScrollToTop,
65
- K as SearchControl,
66
- h as SlugContainer,
67
- v as SlugPostContainer,
68
- ue as UPDATE,
49
+ ye as COUNTRY_OPTIONS,
50
+ Qe as CategoriesContext,
51
+ X as ClassicHeader,
52
+ c as Config,
53
+ K as CustomSemanticSearch,
54
+ k as CustomizerWrapper,
55
+ _e as DataConsumer,
56
+ Xe as DataContext,
57
+ qe as DataProvider,
58
+ N as Favicon,
59
+ $ as FlexWrapDetector,
60
+ re as FloatingMenuHeader,
61
+ G as Footer,
62
+ J as Header,
63
+ ie as InternalTrafficToggle,
64
+ sr as IntlProvider,
65
+ j as LangSwitcher,
66
+ z as Loading,
67
+ Le as Media,
68
+ Me as MediaContextProvider,
69
+ Ze as PostsContext,
70
+ L as PreviewComponent,
71
+ h as PreviewPageContainer,
72
+ I as PreviewTypeContainer,
73
+ ar as Provider,
74
+ C as ResponsiveContainer,
75
+ E as RootLayout,
76
+ b as SSRFavicon,
77
+ P as ScrollToTop,
78
+ Y as SearchControl,
79
+ A as SlugContainer,
80
+ D as SlugPostContainer,
81
+ Ce as UPDATE,
69
82
  o as afrikaansTranslations,
70
83
  t as amharicTranslations,
71
- re as clearInternalTrafficCookie,
72
- ge as combineReducers,
73
- n as components,
74
- s as customizer,
75
- Ie as decodeHtmlEntitiesToHtml,
76
- ve as decodeHtmlEntitiesToText,
84
+ fe as clearInternalTrafficCookie,
85
+ ve as combineReducers,
86
+ er as compareJsonProps,
87
+ i as components,
88
+ l as customizer,
89
+ rr as decode,
90
+ He as decodeHtmlEntitiesToHtml,
91
+ De as decodeHtmlEntitiesToText,
77
92
  e as englishTranslations,
78
93
  r as frenchTranslations,
79
- p as getComponentByNameIgnoreCase,
80
- Me as getUnhandledProps,
81
- Ne as htmlImageProps,
82
- Oe as htmlInputAttrs,
83
- be as htmlInputEvents,
84
- De as htmlInputProps,
85
- xe as initialState,
86
- ce as intlReducer,
87
- oe as isInternalTrafficEnabled,
88
- Fe as mediaStyle,
89
- Ue as partitionHTMLProps,
90
- m as reducers,
91
- te as setInternalTrafficCookie,
92
- pe as store,
93
- ye as stringToArray,
94
- Ae as toBoolean,
95
- He as toNumber,
96
- Te as updateIntl,
97
- Re as uriStringToArray,
98
- ie as useAppDispatch,
99
- le as useAppSelector,
100
- ze as useKeyOnly,
101
- Be as useValueAndKey,
102
- ae as validateToken,
103
- $ as withTracker
94
+ d as getComponentByNameIgnoreCase,
95
+ be as getUnhandledProps,
96
+ Ue as htmlImageProps,
97
+ ze as htmlInputAttrs,
98
+ Be as htmlInputEvents,
99
+ Ke as htmlInputProps,
100
+ ge as initialState,
101
+ Pe as intlReducer,
102
+ se as isInternalTrafficEnabled,
103
+ Ne as mediaStyle,
104
+ or as parse,
105
+ We as partitionHTMLProps,
106
+ p as reducer,
107
+ x as reducers,
108
+ pe as setInternalTrafficCookie,
109
+ de as store,
110
+ Re as stringToArray,
111
+ ke as toBoolean,
112
+ we as toNumber,
113
+ Se as updateIntl,
114
+ Ee as uriStringToArray,
115
+ ue as useAppDispatch,
116
+ ce as useAppSelector,
117
+ Je as useKeyOnly,
118
+ Ve as useValueAndKey,
119
+ me as validateToken,
120
+ te as withTracker
104
121
  };
@@ -1,23 +1,24 @@
1
- import i, { useState as c, useRef as p, useEffect as g } from "react";
1
+ import i, { useState as c, useRef as l, useEffect as p } from "react";
2
2
  const o = {
3
3
  blogname: "name",
4
4
  custom_logo: "site_logo"
5
- }, d = (n) => {
6
- const [m, u] = c(n.settings), s = p({}), a = (r) => {
5
+ }, d = (s) => {
6
+ const [m, u] = c(s.settings), n = l({}), a = (r) => {
7
7
  const e = r.data;
8
8
  if (e.messageType && e.messageType === "partial-update") {
9
- const t = s.current;
10
- o[e.property] ? t[o[e.property]] = e.value : e.property.indexOf("menu") > -1 && (t.menu_settings || (t.menu_settings = {}), t.menu_settings[e.property] = e.value), s.current = t, u({ ...s.current, random: Math.random() });
9
+ const t = n.current;
10
+ o[e.property] ? t[o[e.property]] = e.value : e.property.indexOf("menu") > -1 && (t.menu_settings || (t.menu_settings = {}), t.menu_settings[e.property] = e.value), n.current = t, u({ ...n.current, random: Math.random() });
11
11
  }
12
12
  };
13
- return g(() => (window.addEventListener("message", a, !1), () => {
13
+ return p(() => (window.addEventListener("message", a, !1), () => {
14
14
  window.removeEventListener("message", a);
15
- }), []), i.Children.map(n.children, (r, e) => i.cloneElement(r, {
16
- ...n,
15
+ }), []), i.Children.map(s.children, (r, e) => i.cloneElement(r, {
16
+ ...s,
17
17
  settings: { ...m },
18
18
  key: `customizer-child-${e}`
19
19
  }));
20
20
  };
21
21
  export {
22
- d as CustomizerWrapper
22
+ d as CustomizerWrapper,
23
+ d as default
23
24
  };
@@ -1,54 +1,54 @@
1
- import { jsx as t, jsxs as y, Fragment as T } from "react/jsx-runtime";
2
- import { useState as w, useEffect as E, useContext as _, useRef as b } from "react";
3
- import { utils as x, SearchProvider as z, SearchContext as H } from "@devgateway/wp-react-lib";
4
- import P from "./CustomSemanticSearch.js";
5
- import { createPortal as B } from "react-dom";
1
+ import { jsx as t, jsxs as S, Fragment as L } from "react/jsx-runtime";
2
+ import { useState as v, useEffect as w, useContext as _, useRef as E } from "react";
3
+ import { utils as x, SearchProvider as T, SearchContext as b } from "@devgateway/wp-react-lib";
4
+ import z from "./CustomSemanticSearch.js";
5
+ import { createPortal as P } from "react-dom";
6
6
  import { Icon as F } from "semantic-ui-react";
7
- import { injectIntl as M, IntlProvider as j } from "react-intl";
8
- const I = (r, s) => {
9
- if (!r || !s) return r || "";
7
+ import { injectIntl as I, IntlProvider as j } from "react-intl";
8
+ const C = (n, s) => {
9
+ if (!n || !s) return n || "";
10
10
  const o = new RegExp(`(${s})`, "gi");
11
- return r.replace(o, "<strong>$1</strong>");
12
- }, R = M(
11
+ return n.replace(o, "<strong>$1</strong>");
12
+ }, N = I(
13
13
  ({
14
- ID: r,
14
+ ID: n,
15
15
  title: s,
16
16
  slug: o,
17
17
  parent_title: i,
18
18
  parent_slug: e,
19
- parent_link: n,
19
+ parent_link: r,
20
20
  extract: a,
21
- type: d,
22
- link: m,
23
- terms: C,
21
+ type: l,
22
+ link: d,
23
+ terms: y,
24
24
  subtype: p,
25
- bread_crumbs: h = [],
26
- metadata: l,
27
- intl: { locale: f },
25
+ bread_crumbs: u = [],
26
+ metadata: c,
27
+ intl: { locale: m },
28
28
  searchTerm: g
29
29
  // Added searchTerm prop
30
30
  }) => {
31
- let S = n ? x.replaceLink(n, f) + `#${o}` : x.replaceLink(m, f);
32
- const N = l == null ? void 0 : l.redirect_url;
33
- S = N ? N + `#${o}` : S;
34
- const c = I(String(s), g), u = I(a, g);
31
+ let h = r ? x.replaceLink(r, m) + `#${o}` : x.replaceLink(d, m);
32
+ const f = c == null ? void 0 : c.redirect_url;
33
+ h = f ? f + `#${o}` : h;
34
+ const M = C(String(s), g), R = C(a, g);
35
35
  return /* @__PURE__ */ t(
36
36
  "div",
37
37
  {
38
38
  className: "search-results-wrapper searching-results",
39
39
  style: { display: "flex", flexDirection: "column" },
40
- children: /* @__PURE__ */ y(
40
+ children: /* @__PURE__ */ S(
41
41
  "div",
42
42
  {
43
43
  className: "has-standard-12-font-size",
44
- onClick: (L) => document.location.href = S,
44
+ onClick: (q) => document.location.href = h,
45
45
  children: [
46
46
  /* @__PURE__ */ t(
47
47
  "h5",
48
48
  {
49
49
  className: "breadcrumbs-search",
50
50
  dangerouslySetInnerHTML: {
51
- __html: h && h.length > 0 ? I(h.join(" / "), g) : ""
51
+ __html: u && u.length > 0 ? C(u.join(" / "), g) : ""
52
52
  }
53
53
  }
54
54
  ),
@@ -57,7 +57,7 @@ const I = (r, s) => {
57
57
  {
58
58
  className: "search-title",
59
59
  dangerouslySetInnerHTML: {
60
- __html: c
60
+ __html: M
61
61
  }
62
62
  }
63
63
  ) }),
@@ -66,7 +66,7 @@ const I = (r, s) => {
66
66
  {
67
67
  className: "search-content",
68
68
  dangerouslySetInnerHTML: {
69
- __html: x.replaceHTMLinks(u, f)
69
+ __html: x.replaceHTMLinks(R, m)
70
70
  }
71
71
  }
72
72
  )
@@ -76,193 +76,183 @@ const I = (r, s) => {
76
76
  }
77
77
  );
78
78
  }
79
- ), k = ({ results: r, meta: s, perPage: o, intl: i, searchTerm: e }) => {
80
- const n = s ? s["x-wp-total"] : 0;
81
- return s && s["x-wp-totalpages"], /* @__PURE__ */ y("div", { id: "float-results-container", children: [
79
+ ), k = ({ results: n, meta: s, perPage: o, intl: i, searchTerm: e }) => {
80
+ const r = s ? s["x-wp-total"] : 0;
81
+ return s && s["x-wp-totalpages"], /* @__PURE__ */ S("div", { id: "float-results-container", children: [
82
82
  /* @__PURE__ */ t("span", { className: "float-results-header", children: i.formatMessage(
83
83
  {
84
84
  id: "search.results.summary",
85
85
  defaultMessage: "{count} of {total} Results"
86
86
  },
87
- { count: n < o ? n : o, total: n }
87
+ { count: r < o ? r : o, total: r }
88
88
  ) }),
89
- r.map((a) => /* @__PURE__ */ t(R, { ...a, searchTerm: e }, a.ID))
89
+ n.map((a) => /* @__PURE__ */ t(N, { ...a, searchTerm: e }, a.ID))
90
90
  ] });
91
91
  }, D = ({
92
- onSearch: r,
92
+ onSearch: n,
93
93
  perPage: s,
94
94
  loading: o,
95
95
  results: i,
96
96
  meta: e,
97
- intl: n
97
+ intl: r,
98
+ searchTerm: a
98
99
  }) => (e && e["x-wp-total"], e && e["x-wp-totalpages"], /* @__PURE__ */ t(
99
100
  "input",
100
101
  {
101
- placeholder: n.formatMessage({
102
+ placeholder: r.formatMessage({
102
103
  id: "search.placeholder",
103
104
  defaultMessage: "Search..."
104
105
  }),
105
106
  type: "text",
106
107
  className: "input search",
107
108
  name: "search",
108
- onChange: (a) => {
109
- r(a.target.value);
109
+ value: a,
110
+ onChange: (l) => {
111
+ n(l.target.value);
110
112
  }
111
113
  }
112
- )), $ = ({
113
- onSearch: r,
114
+ )), H = ({
115
+ onSearch: n,
114
116
  onSetSelected: s,
115
117
  perPage: o,
116
118
  loading: i,
117
119
  results: e,
118
- meta: n,
120
+ meta: r,
119
121
  locale: a,
120
- intl: d,
121
- searchTerm: m,
122
+ intl: l,
123
+ searchTerm: d,
122
124
  // Added search from SearchConsumer
123
- selected: C
125
+ selected: y
124
126
  // Added selected prop to track menu selection
125
127
  }) => {
126
- const [p, h] = w(!1), l = b(null), f = () => {
127
- h(!1);
128
- }, g = () => {
129
- const c = document.getElementsByClassName("has-child-items");
130
- for (let u = 0; u < c.length; u++) {
131
- const v = c[u].getElementsByTagName("span");
132
- v.length > 0 && v[0].addEventListener("mouseover", f);
133
- }
134
- }, S = () => {
135
- const c = document.getElementsByClassName("has-child-items");
136
- for (let u = 0; u < c.length; u++) {
137
- const v = c[u].getElementsByTagName("span");
138
- v.length > 0 && v[0].removeEventListener("mouseover", f);
139
- }
128
+ const [p, u] = v(!1), c = E(null), m = () => {
129
+ u(!1);
140
130
  };
141
- return E(() => {
142
- const c = document.createElement("div");
143
- c.setAttribute("id", "float-input-container"), c.setAttribute("class", "input container"), c.style.display = "none";
144
- const u = document.getElementById("root");
145
- return u && (u.appendChild(c), l.current = c), () => {
146
- l.current && l.current.parentNode && l.current.parentNode.removeChild(l.current);
131
+ return w(() => {
132
+ const h = document.createElement("div");
133
+ h.setAttribute("id", "float-input-container"), h.setAttribute("class", "input container"), h.style.display = "none";
134
+ const f = document.getElementById("root");
135
+ return f && (f.appendChild(h), c.current = h), () => {
136
+ c.current && c.current.parentNode && c.current.parentNode.removeChild(c.current);
147
137
  };
148
- }, []), E(() => {
149
- l.current && (l.current.style.display = p ? "block" : "none"), p ? g() : S();
150
- }, [p]), /* @__PURE__ */ y(T, { children: [
138
+ }, []), w(() => {
139
+ c.current && (c.current.style.display = p ? "block" : "none");
140
+ }, [p]), /* @__PURE__ */ S(L, { children: [
151
141
  /* @__PURE__ */ t(
152
142
  "div",
153
143
  {
154
144
  id: "ui-float-search",
155
145
  className: "ui float-search",
156
146
  onMouseOver: () => {
157
- h(!0);
147
+ u(!0);
158
148
  },
159
149
  children: /* @__PURE__ */ t(F, { name: "search", size: "small" })
160
150
  }
161
151
  ),
162
- l.current && B(
163
- p ? /* @__PURE__ */ y("div", { onMouseLeave: f, children: [
152
+ c.current && P(
153
+ p ? /* @__PURE__ */ S("div", { onMouseLeave: m, children: [
164
154
  /* @__PURE__ */ t("div", { className: "float-search-container", children: /* @__PURE__ */ t(
165
155
  D,
166
156
  {
167
- onSearch: r,
157
+ onSearch: n,
168
158
  perPage: o,
169
159
  loading: i,
170
160
  results: e,
171
- meta: n,
172
- intl: d,
173
- searchTerm: m
161
+ meta: r,
162
+ intl: l,
163
+ searchTerm: d
174
164
  }
175
165
  ) }),
176
166
  e && e.length > 0 && /* @__PURE__ */ t(j, { locale: a, children: /* @__PURE__ */ t(
177
167
  k,
178
168
  {
179
169
  results: e,
180
- meta: n,
170
+ meta: r,
181
171
  perPage: o,
182
- intl: d,
183
- searchTerm: m
172
+ intl: l,
173
+ searchTerm: d
184
174
  }
185
175
  ) })
186
176
  ] }) : null,
187
- l.current
177
+ c.current
188
178
  )
189
179
  ] });
190
- }, W = ({ onSearch: r, perPage: s, loading: o, results: i, meta: e, intl: n }) => {
191
- const a = e ? e["x-wp-total"] : 0, d = e ? e["x-wp-totalpages"] : 0, [m, C] = w("");
192
- E(() => {
193
- const h = setTimeout(() => {
194
- r(m);
180
+ }, $ = ({ onSearch: n, perPage: s, loading: o, results: i, meta: e, intl: r }) => {
181
+ const a = e ? e["x-wp-total"] : 0, l = e ? e["x-wp-totalpages"] : 0, [d, y] = v("");
182
+ w(() => {
183
+ const u = setTimeout(() => {
184
+ n(d);
195
185
  }, 300);
196
- return () => clearTimeout(h);
197
- }, [m]);
198
- const p = (h) => /* @__PURE__ */ t(R, { ...h, searchTerm: m });
186
+ return () => clearTimeout(u);
187
+ }, [d]);
188
+ const p = (u) => /* @__PURE__ */ t(N, { ...u, searchTerm: d });
199
189
  return /* @__PURE__ */ t(
200
- P,
190
+ z,
201
191
  {
202
- value: m,
192
+ value: d,
203
193
  loading: o,
204
- placeholder: n.formatMessage({
194
+ placeholder: r.formatMessage({
205
195
  id: "search.placeholder",
206
196
  defaultMessage: "Search..."
207
197
  }),
208
- onResultSelect: (h, l) => null,
198
+ onResultSelect: (u, c) => null,
209
199
  total: a,
210
200
  perPage: s,
211
- totalPages: d,
212
- onSearchChange: (h, l) => {
213
- C(l.value);
201
+ totalPages: l,
202
+ onSearchChange: (u, c) => {
203
+ y(c.value);
214
204
  },
215
205
  resultRenderer: p,
216
206
  results: i,
217
207
  showNoResults: !1,
218
- intl: n,
219
- searchTerm: m
208
+ intl: r,
209
+ searchTerm: d
220
210
  }
221
211
  );
222
- }, V = M((r) => {
223
- const { intl: s, onSetSelected: o } = r, [i, e] = w(""), [n, a] = w(!1);
224
- return E(() => {
225
- const d = () => {
212
+ }, U = I((n) => {
213
+ const { intl: s, onSetSelected: o } = n, [i, e] = v(""), [r, a] = v(!1);
214
+ return w(() => {
215
+ const l = () => {
226
216
  a(window.innerWidth <= 1365);
227
217
  };
228
- return d(), window.addEventListener("resize", d), () => window.removeEventListener("resize", d);
229
- }, []), /* @__PURE__ */ t(z, { search: i, perPage: 5, locale: s.locale, children: /* @__PURE__ */ t(
218
+ return l(), window.addEventListener("resize", l), () => window.removeEventListener("resize", l);
219
+ }, []), /* @__PURE__ */ t(T, { search: i, perPage: 5, locale: s.locale, children: /* @__PURE__ */ t(
230
220
  A,
231
221
  {
232
- ...r,
222
+ ...n,
233
223
  onSetSelected: o,
234
224
  setQuery: e,
235
225
  query: i,
236
- isSmallScreen: n,
226
+ isSmallScreen: r,
237
227
  intl: s
238
228
  }
239
229
  ) });
240
- }), A = ({ onSetSelected: r, selected: s, setQuery: o, query: i, isSmallScreen: e, intl: n, ...a }) => {
241
- const d = _(H);
230
+ }), A = ({ onSetSelected: n, selected: s, setQuery: o, query: i, isSmallScreen: e, intl: r, ...a }) => {
231
+ const l = _(b);
242
232
  return a.settings.react_search_type === "floating" || e ? /* @__PURE__ */ t(
243
- $,
233
+ H,
244
234
  {
245
- onSetSelected: r,
235
+ onSetSelected: n,
246
236
  selected: s,
247
237
  onSearch: o,
248
238
  perPage: 5,
249
- intl: n,
239
+ intl: r,
250
240
  ...a,
251
- ...d,
241
+ ...l,
252
242
  searchTerm: i
253
243
  }
254
244
  ) : /* @__PURE__ */ t(
255
- W,
245
+ $,
256
246
  {
257
- onSetSelected: r,
247
+ onSetSelected: n,
258
248
  onSearch: o,
259
249
  perPage: 5,
260
- intl: n,
250
+ intl: r,
261
251
  ...a,
262
- ...d
252
+ ...l
263
253
  }
264
254
  );
265
255
  };
266
256
  export {
267
- V as default
257
+ U as default
268
258
  };
@@ -7,10 +7,10 @@ const v = ({ header: e, footer: t, posts: r } = {}) => {
7
7
  return r ? /* @__PURE__ */ o(s, { header: e, footer: t, children: /* @__PURE__ */ o(i, { posts: typeof r == "object" ? [r] : r }) }) : (console.log("SlugPostContainer falling back to PostProvider"), /* @__PURE__ */ o(
8
8
  u,
9
9
  {
10
+ type: a,
10
11
  slug: n,
11
12
  store: n,
12
13
  locale: l,
13
- type: a,
14
14
  year: c,
15
15
  month: d,
16
16
  day: m,
@@ -0,0 +1,11 @@
1
+ import { __require as u } from "./_root.js";
2
+ var r, e;
3
+ function a() {
4
+ if (e) return r;
5
+ e = 1;
6
+ var o = u(), i = o.Symbol;
7
+ return r = i, r;
8
+ }
9
+ export {
10
+ a as __require
11
+ };