@devgateway/dvz-ui-react 1.6.19 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/_virtual/_commonjsHelpers.js +1 -0
- package/dist/cjs/_virtual/debounce.js +1 -0
- package/dist/cjs/api/commons.js +1 -1
- package/dist/cjs/embeddable/big-filter/BigNumberGroup.js +1 -0
- package/dist/cjs/embeddable/big-filter/BigNumberItem.js +1 -0
- package/dist/cjs/embeddable/big-filter/DataProvider.js +1 -0
- package/dist/cjs/embeddable/big-filter/index.js +1 -0
- package/dist/cjs/embeddable/big-number/index.js +1 -1
- package/dist/cjs/embeddable/big-number-trend/Alternative.js +1 -0
- package/dist/cjs/embeddable/big-number-trend/Classic.js +1 -0
- package/dist/cjs/embeddable/big-number-trend/index.js +1 -1
- package/dist/cjs/embeddable/chart/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/Line.js +1 -1
- package/dist/cjs/embeddable/chart/data/Bar.js +1 -1
- package/dist/cjs/embeddable/chart/index.js +1 -1
- package/dist/cjs/embeddable/d3Map/BaseLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/BreaksStyles.js +1 -1
- package/dist/cjs/embeddable/d3Map/DataLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/FlowLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/GradientColors.js +1 -1
- package/dist/cjs/embeddable/d3Map/LatLongLayer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Layer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Legends.js +1 -1
- package/dist/cjs/embeddable/d3Map/ProjectedContainer.js +1 -1
- package/dist/cjs/embeddable/d3Map/Utils.js +1 -1
- package/dist/cjs/embeddable/d3Map/ZoomControl.js +1 -1
- package/dist/cjs/embeddable/d3Map/index.js +1 -1
- package/dist/cjs/embeddable/data/CategoriesProvider.js +1 -1
- package/dist/cjs/embeddable/data/D3MapDataConsumer.js +1 -0
- package/dist/cjs/embeddable/data/D3MapDataProvider.js +1 -0
- package/dist/cjs/embeddable/data/DataContext.js +1 -1
- package/dist/cjs/embeddable/data/DataProvider.js +1 -1
- package/dist/cjs/embeddable/data-paragraph/index.js +1 -0
- package/dist/cjs/embeddable/download/dom-to-image.js +2 -2
- package/dist/cjs/embeddable/download/index.js +5 -5
- package/dist/cjs/embeddable/filter/index.js +1 -1
- package/dist/cjs/embeddable/grouped-bars/GroupedBars.js +1 -0
- package/dist/cjs/embeddable/grouped-bars/index.js +1 -0
- package/dist/cjs/embeddable/index.js +1 -1
- package/dist/cjs/embeddable/reducers/data-api.js +1 -1
- package/dist/cjs/embeddable/reducers/data.js +1 -1
- package/dist/cjs/embeddable/utils/common.js +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/layout/Customizer.js +1 -1
- package/dist/cjs/layout/PreviewComponent.js +1 -1
- package/dist/cjs/layout/containers/SlugPostContainer.js +1 -1
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +1 -0
- package/dist/cjs/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +1 -0
- package/dist/cjs/styles.css +1 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +8 -0
- package/dist/esm/_virtual/debounce.js +7 -0
- package/dist/esm/api/commons.js +26 -17
- package/dist/esm/embeddable/big-filter/BigNumberGroup.js +129 -0
- package/dist/esm/embeddable/big-filter/BigNumberItem.js +107 -0
- package/dist/esm/embeddable/big-filter/DataProvider.js +53 -0
- package/dist/esm/embeddable/big-filter/index.js +130 -0
- package/dist/esm/embeddable/big-number/index.js +154 -102
- package/dist/esm/embeddable/big-number-trend/Alternative.js +227 -0
- package/dist/esm/embeddable/big-number-trend/Classic.js +190 -0
- package/dist/esm/embeddable/big-number-trend/index.js +12 -147
- package/dist/esm/embeddable/chart/Bar.js +450 -395
- package/dist/esm/embeddable/chart/Line.js +216 -184
- package/dist/esm/embeddable/chart/data/Bar.js +16 -18
- package/dist/esm/embeddable/chart/index.js +168 -162
- package/dist/esm/embeddable/d3Map/BaseLayer.js +25 -28
- package/dist/esm/embeddable/d3Map/BreaksStyles.js +17 -10
- package/dist/esm/embeddable/d3Map/DataLayer.js +290 -289
- package/dist/esm/embeddable/d3Map/FlowLayer.js +122 -136
- package/dist/esm/embeddable/d3Map/GradientColors.js +27 -20
- package/dist/esm/embeddable/d3Map/LatLongLayer.js +62 -62
- package/dist/esm/embeddable/d3Map/Layer.js +31 -27
- package/dist/esm/embeddable/d3Map/Legends.js +204 -190
- package/dist/esm/embeddable/d3Map/ProjectedContainer.js +1 -3
- package/dist/esm/embeddable/d3Map/Utils.js +12 -8
- package/dist/esm/embeddable/d3Map/ZoomControl.js +41 -41
- package/dist/esm/embeddable/d3Map/index.js +135 -117
- package/dist/esm/embeddable/data/CategoriesProvider.js +39 -26
- package/dist/esm/embeddable/data/D3MapDataConsumer.js +7 -0
- package/dist/esm/embeddable/data/D3MapDataProvider.js +83 -0
- package/dist/esm/embeddable/data/DataContext.js +2 -2
- package/dist/esm/embeddable/data/DataProvider.js +125 -56
- package/dist/esm/embeddable/data-paragraph/index.js +168 -0
- package/dist/esm/embeddable/download/dom-to-image.js +163 -148
- package/dist/esm/embeddable/download/index.js +102 -76
- package/dist/esm/embeddable/filter/index.js +335 -298
- package/dist/esm/embeddable/grouped-bars/GroupedBars.js +549 -0
- package/dist/esm/embeddable/grouped-bars/index.js +16 -0
- package/dist/esm/embeddable/index.js +33 -30
- package/dist/esm/embeddable/reducers/data-api.js +44 -35
- package/dist/esm/embeddable/reducers/data.js +141 -182
- package/dist/esm/embeddable/utils/common.js +3 -3
- package/dist/esm/index.js +111 -94
- package/dist/esm/layout/Customizer.js +10 -9
- package/dist/esm/layout/PreviewComponent.js +23 -26
- package/dist/esm/layout/containers/SlugPostContainer.js +9 -8
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js +16 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseTrim.js +14 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js +11 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_trimmedEndIndex.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/debounce.js +60 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObjectLike.js +12 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isSymbol.js +15 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/now.js +13 -0
- package/dist/esm/node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/toNumber.js +28 -0
- package/dist/esm/styles.css +1 -1
- package/dist/types/api/commons.d.ts +4 -1
- package/dist/types/embeddable/big-filter/BigNumberGroup.d.ts +3 -0
- package/dist/types/embeddable/big-filter/BigNumberItem.d.ts +2 -0
- package/dist/types/embeddable/big-filter/DataProvider.d.ts +7 -0
- package/dist/types/embeddable/big-filter/index.d.ts +5 -0
- package/dist/types/embeddable/big-number-trend/Alternative.d.ts +5 -0
- package/dist/types/embeddable/big-number-trend/Classic.d.ts +5 -0
- package/dist/types/embeddable/big-number-trend/index.d.ts +2 -4
- package/dist/types/embeddable/chart/Bar.d.ts +3 -0
- package/dist/types/embeddable/chart/Line.d.ts +6 -0
- package/dist/types/embeddable/d3Map/GradientColors.d.ts +6 -2
- package/dist/types/embeddable/d3Map/Layer.d.ts +1 -1
- package/dist/types/embeddable/d3Map/Utils.d.ts +1 -1
- package/dist/types/embeddable/data/D3MapDataProvider.d.ts +7 -0
- package/dist/types/embeddable/data/index.d.ts +6 -0
- package/dist/types/embeddable/data-paragraph/index.d.ts +5 -0
- package/dist/types/embeddable/filter/index.d.ts +13 -1
- package/dist/types/embeddable/grouped-bars/GroupedBars.d.ts +5 -0
- package/dist/types/embeddable/grouped-bars/index.d.ts +3 -0
- package/dist/types/embeddable/reducers/data-api.d.ts +5 -0
- package/dist/types/embeddable/reducers/data.d.ts +16 -9
- package/dist/types/embeddable/utils/index.d.ts +1 -0
- package/dist/types/embeddable/utils/parseUtils.d.ts +0 -6
- package/dist/types/index.d.ts +6 -0
- package/dist/types/layout/Customizer.d.ts +1 -0
- package/dist/types/layout/containers/PageContainer.d.ts +8 -0
- package/dist/types/layout/containers/PostContainer.d.ts +0 -0
- package/dist/types/layout/index.d.ts +1 -0
- package/dist/types/utils/Logger.d.ts +1 -0
- package/package.json +4 -3
- /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
|
|
2
|
-
import { Config as
|
|
3
|
-
import { default as
|
|
4
|
-
import { default as
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
8
|
-
import { default as
|
|
9
|
-
import { CustomizerWrapper as
|
|
10
|
-
import { default as
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { withTracker as
|
|
24
|
-
import { clearInternalTrafficCookie as
|
|
25
|
-
import { default as
|
|
26
|
-
import { store as
|
|
27
|
-
import { useAppDispatch as
|
|
28
|
-
import { UPDATE as
|
|
29
|
-
import { combineReducers as
|
|
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
|
|
35
|
-
import { decodeHtmlEntitiesToHtml as
|
|
36
|
-
import { Media as
|
|
37
|
-
import { getUnhandledProps as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as
|
|
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
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
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
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
|
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 = (
|
|
6
|
-
const [m, u] = c(
|
|
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 =
|
|
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),
|
|
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
|
|
13
|
+
return p(() => (window.addEventListener("message", a, !1), () => {
|
|
14
14
|
window.removeEventListener("message", a);
|
|
15
|
-
}), []), i.Children.map(
|
|
16
|
-
...
|
|
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,30 +1,27 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
3
|
-
import { useParams as
|
|
4
|
-
import { Container as y, Segment as
|
|
5
|
-
import { SettingsConsumer as
|
|
6
|
-
import { getComponentByNameIgnoreCase as
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}), i(s);
|
|
2
|
+
import { useState as i, useRef as f, useCallback as g, useEffect as l } from "react";
|
|
3
|
+
import { useParams as w, useSearchParams as P } from "react-router";
|
|
4
|
+
import { Container as y, Segment as C } from "semantic-ui-react";
|
|
5
|
+
import { SettingsConsumer as h } from "@devgateway/wp-react-lib";
|
|
6
|
+
import { getComponentByNameIgnoreCase as v } from "../embeddable/index.js";
|
|
7
|
+
const b = () => {
|
|
8
|
+
const p = w(), [c] = P(), [a] = i(() => v(p.name ?? "")), [o, d] = i(
|
|
9
|
+
() => Object.fromEntries(c.entries())
|
|
10
|
+
), s = f(o);
|
|
11
|
+
s.current = o;
|
|
12
|
+
const n = g((u) => {
|
|
13
|
+
const t = u.data;
|
|
14
|
+
if (t.messageType && t.messageType === "component-attributes") {
|
|
15
|
+
const m = { ...s.current };
|
|
16
|
+
Object.keys(t).forEach((r) => {
|
|
17
|
+
m["data-" + r.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()] = typeof t[r] == "object" ? JSON.stringify(t[r]) : t[r];
|
|
18
|
+
}), d(m);
|
|
20
19
|
}
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
window.removeEventListener("message",
|
|
24
|
-
}), []);
|
|
25
|
-
|
|
26
|
-
return /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(y, { fluid: !0, className: "editing", children: n ? /* @__PURE__ */ e(n, { ...p, editing: !0 }) : /* @__PURE__ */ e(P.Group, { color: "red", textAlign: "center", children: /* @__PURE__ */ e("h1", { children: "Wrong Component Name" }) }) }) });
|
|
27
|
-
}, N = () => /* @__PURE__ */ e(C, { children: /* @__PURE__ */ e(v, {}) });
|
|
20
|
+
}, []);
|
|
21
|
+
return l(() => (window.addEventListener("message", n, !1), window.parent && window.parent.postMessage({ type: "componentReady", value: !0 }, "*"), window.top && window.top.postMessage({ type: "componentReady", value: !0 }, "*"), () => {
|
|
22
|
+
window.removeEventListener("message", n);
|
|
23
|
+
}), [n]), /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(y, { fluid: !0, className: "editing", children: a ? /* @__PURE__ */ e(a, { ...o, editing: !0 }) : /* @__PURE__ */ e(C.Group, { color: "red", textAlign: "center", children: /* @__PURE__ */ e("h1", { children: "Wrong Component Name" }) }) }) });
|
|
24
|
+
}, L = () => /* @__PURE__ */ e(h, { children: /* @__PURE__ */ e(b, {}) });
|
|
28
25
|
export {
|
|
29
|
-
|
|
26
|
+
L as default
|
|
30
27
|
};
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
2
|
import { useParams as P } from "react-router";
|
|
3
|
-
import
|
|
4
|
-
import { Post as
|
|
3
|
+
import i from "../ResponsiveContainer.js";
|
|
4
|
+
import { Post as l, PostProvider as p, PostConsumer as u } from "@devgateway/wp-react-lib";
|
|
5
5
|
const v = ({ header: e, footer: t, posts: r } = {}) => {
|
|
6
|
-
const { lan:
|
|
7
|
-
return r ? /* @__PURE__ */ o(
|
|
8
|
-
|
|
6
|
+
const { lan: a, slug: n, parent: s, year: c, month: d, day: m } = P();
|
|
7
|
+
return r ? /* @__PURE__ */ o(i, { header: e, footer: t, children: /* @__PURE__ */ o(l, { posts: typeof r == "object" ? [r] : r }) }) : (console.log("SlugPostContainer falling back to PostProvider"), /* @__PURE__ */ o(
|
|
8
|
+
p,
|
|
9
9
|
{
|
|
10
|
+
type: s,
|
|
10
11
|
slug: n,
|
|
11
12
|
store: n,
|
|
12
|
-
locale:
|
|
13
|
-
type:
|
|
13
|
+
locale: a,
|
|
14
|
+
type: s,
|
|
14
15
|
year: c,
|
|
15
16
|
month: d,
|
|
16
17
|
day: m,
|
|
17
|
-
children: /* @__PURE__ */ o(
|
|
18
|
+
children: /* @__PURE__ */ o(i, { header: e, footer: t, children: /* @__PURE__ */ o(u, { children: /* @__PURE__ */ o(l, {}) }) })
|
|
18
19
|
}
|
|
19
20
|
));
|
|
20
21
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __require as T } from "./_Symbol.js";
|
|
2
|
+
import { __require as b } from "./_getRawTag.js";
|
|
3
|
+
import { __require as f } from "./_objectToString.js";
|
|
4
|
+
var r, n;
|
|
5
|
+
function q() {
|
|
6
|
+
if (n) return r;
|
|
7
|
+
n = 1;
|
|
8
|
+
var t = T(), a = b(), o = f(), u = "[object Null]", g = "[object Undefined]", i = t ? t.toStringTag : void 0;
|
|
9
|
+
function _(e) {
|
|
10
|
+
return e == null ? e === void 0 ? g : u : i && i in Object(e) ? a(e) : o(e);
|
|
11
|
+
}
|
|
12
|
+
return r = _, r;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
q as __require
|
|
16
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __require as n } from "./_trimmedEndIndex.js";
|
|
2
|
+
var e, i;
|
|
3
|
+
function _() {
|
|
4
|
+
if (i) return e;
|
|
5
|
+
i = 1;
|
|
6
|
+
var a = n(), m = /^\s+/;
|
|
7
|
+
function u(r) {
|
|
8
|
+
return r && r.slice(0, a(r) + 1).replace(m, "");
|
|
9
|
+
}
|
|
10
|
+
return e = u, e;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
_ as __require
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { commonjsGlobal as e } from "../../../../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
var r, o;
|
|
3
|
+
function t() {
|
|
4
|
+
if (o) return r;
|
|
5
|
+
o = 1;
|
|
6
|
+
var a = typeof e == "object" && e && e.Object === Object && e;
|
|
7
|
+
return r = a, r;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
t as __require
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __require as _ } from "./_Symbol.js";
|
|
2
|
+
var t, n;
|
|
3
|
+
function d() {
|
|
4
|
+
if (n) return t;
|
|
5
|
+
n = 1;
|
|
6
|
+
var a = _(), i = Object.prototype, o = i.hasOwnProperty, g = i.toString, e = a ? a.toStringTag : void 0;
|
|
7
|
+
function c(r) {
|
|
8
|
+
var s = o.call(r, e), u = r[e];
|
|
9
|
+
try {
|
|
10
|
+
r[e] = void 0;
|
|
11
|
+
var f = !0;
|
|
12
|
+
} catch {
|
|
13
|
+
}
|
|
14
|
+
var T = g.call(r);
|
|
15
|
+
return f && (s ? r[e] = u : delete r[e]), T;
|
|
16
|
+
}
|
|
17
|
+
return t = c, t;
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
d as __require
|
|
21
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __require as a } from "./_freeGlobal.js";
|
|
2
|
+
var r, e;
|
|
3
|
+
function u() {
|
|
4
|
+
if (e) return r;
|
|
5
|
+
e = 1;
|
|
6
|
+
var o = a(), t = typeof self == "object" && self && self.Object === Object && self, f = o || t || Function("return this")();
|
|
7
|
+
return r = f, r;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
u as __require
|
|
11
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { __require as j } from "./isObject.js";
|
|
2
|
+
import { __require as A } from "./now.js";
|
|
3
|
+
import { __require as D } from "./toNumber.js";
|
|
4
|
+
var h, p;
|
|
5
|
+
function z() {
|
|
6
|
+
if (p) return h;
|
|
7
|
+
p = 1;
|
|
8
|
+
var W = j(), v = A(), b = D(), C = "Expected a function", L = Math.max, M = Math.min;
|
|
9
|
+
function N(q, r, u) {
|
|
10
|
+
var a, o, l, f, n, t, d = 0, x = !1, c = !1, g = !0;
|
|
11
|
+
if (typeof q != "function")
|
|
12
|
+
throw new TypeError(C);
|
|
13
|
+
r = b(r) || 0, W(u) && (x = !!u.leading, c = "maxWait" in u, l = c ? L(b(u.maxWait) || 0, r) : l, g = "trailing" in u ? !!u.trailing : g);
|
|
14
|
+
function T(e) {
|
|
15
|
+
var i = a, m = o;
|
|
16
|
+
return a = o = void 0, d = e, f = q.apply(m, i), f;
|
|
17
|
+
}
|
|
18
|
+
function R(e) {
|
|
19
|
+
return d = e, n = setTimeout(s, r), x ? T(e) : f;
|
|
20
|
+
}
|
|
21
|
+
function S(e) {
|
|
22
|
+
var i = e - t, m = e - d, k = r - i;
|
|
23
|
+
return c ? M(k, l - m) : k;
|
|
24
|
+
}
|
|
25
|
+
function E(e) {
|
|
26
|
+
var i = e - t, m = e - d;
|
|
27
|
+
return t === void 0 || i >= r || i < 0 || c && m >= l;
|
|
28
|
+
}
|
|
29
|
+
function s() {
|
|
30
|
+
var e = v();
|
|
31
|
+
if (E(e))
|
|
32
|
+
return I(e);
|
|
33
|
+
n = setTimeout(s, S(e));
|
|
34
|
+
}
|
|
35
|
+
function I(e) {
|
|
36
|
+
return n = void 0, g && a ? T(e) : (a = o = void 0, f);
|
|
37
|
+
}
|
|
38
|
+
function y() {
|
|
39
|
+
n !== void 0 && clearTimeout(n), d = 0, a = t = o = n = void 0;
|
|
40
|
+
}
|
|
41
|
+
function O() {
|
|
42
|
+
return n === void 0 ? f : I(v());
|
|
43
|
+
}
|
|
44
|
+
function _() {
|
|
45
|
+
var e = v(), i = E(e);
|
|
46
|
+
if (a = arguments, o = this, t = e, i) {
|
|
47
|
+
if (n === void 0)
|
|
48
|
+
return R(t);
|
|
49
|
+
if (c)
|
|
50
|
+
return clearTimeout(n), n = setTimeout(s, r), T(t);
|
|
51
|
+
}
|
|
52
|
+
return n === void 0 && (n = setTimeout(s, r)), f;
|
|
53
|
+
}
|
|
54
|
+
return _.cancel = y, _.flush = O, _;
|
|
55
|
+
}
|
|
56
|
+
return h = N, h;
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
z as __require
|
|
60
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __require as a } from "./_baseGetTag.js";
|
|
2
|
+
import { __require as m } from "./isObjectLike.js";
|
|
3
|
+
var e, i;
|
|
4
|
+
function _() {
|
|
5
|
+
if (i) return e;
|
|
6
|
+
i = 1;
|
|
7
|
+
var o = a(), s = m(), t = "[object Symbol]";
|
|
8
|
+
function b(r) {
|
|
9
|
+
return typeof r == "symbol" || s(r) && o(r) == t;
|
|
10
|
+
}
|
|
11
|
+
return e = b, e;
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
_ as __require
|
|
15
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { __require as c } from "./_baseTrim.js";
|
|
2
|
+
import { __require as u } from "./isObject.js";
|
|
3
|
+
import { __require as y } from "./isSymbol.js";
|
|
4
|
+
var e, n;
|
|
5
|
+
function T() {
|
|
6
|
+
if (n) return e;
|
|
7
|
+
n = 1;
|
|
8
|
+
var o = c(), t = u(), m = y(), s = NaN, b = /^[-+]0x[0-9a-f]+$/i, _ = /^0b[01]+$/i, q = /^0o[0-7]+$/i, a = parseInt;
|
|
9
|
+
function p(r) {
|
|
10
|
+
if (typeof r == "number")
|
|
11
|
+
return r;
|
|
12
|
+
if (m(r))
|
|
13
|
+
return s;
|
|
14
|
+
if (t(r)) {
|
|
15
|
+
var i = typeof r.valueOf == "function" ? r.valueOf() : r;
|
|
16
|
+
r = t(i) ? i + "" : i;
|
|
17
|
+
}
|
|
18
|
+
if (typeof r != "string")
|
|
19
|
+
return r === 0 ? r : +r;
|
|
20
|
+
r = o(r);
|
|
21
|
+
var f = _.test(r);
|
|
22
|
+
return f || q.test(r) ? a(r.slice(2), f ? 2 : 8) : b.test(r) ? s : +r;
|
|
23
|
+
}
|
|
24
|
+
return e = p, e;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
T as __require
|
|
28
|
+
};
|