@blaze-cms/react-page-builder 0.146.0-alpha.50 → 0.146.0-alpha.51
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/CHANGELOG.md +12 -0
- package/lib/components/List/ListRender.js +26 -7
- package/lib/components/List/ListRender.js.map +1 -1
- package/lib/components/List/components/Pagination/Classic.js +9 -6
- package/lib/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib/components/List/components/Pagination/ListPagination.js +7 -10
- package/lib/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-items.js +4 -3
- package/lib/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib/components/List/helpers/build-pagination-url.js +2 -2
- package/lib/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib/components/Loading/index.js +16 -3
- package/lib/components/Loading/index.js.map +1 -1
- package/lib/components/SearchFilter/SearchFilterContainer.js +5 -5
- package/lib/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib/constants/index.js +3 -2
- package/lib/constants/index.js.map +1 -1
- package/lib/helpers/build-query-fields.js +1 -1
- package/lib/helpers/build-query-fields.js.map +1 -1
- package/lib/helpers/get-component-id.js +18 -0
- package/lib/helpers/get-component-id.js.map +1 -0
- package/lib/helpers/index.js +7 -0
- package/lib/helpers/index.js.map +1 -1
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -1
- package/lib-es/components/List/ListRender.js +21 -10
- package/lib-es/components/List/ListRender.js.map +1 -1
- package/lib-es/components/List/components/Pagination/Classic.js +9 -6
- package/lib-es/components/List/components/Pagination/Classic.js.map +1 -1
- package/lib-es/components/List/components/Pagination/ListPagination.js +8 -11
- package/lib-es/components/List/components/Pagination/ListPagination.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-items.js +4 -3
- package/lib-es/components/List/helpers/build-pagination-items.js.map +1 -1
- package/lib-es/components/List/helpers/build-pagination-url.js +2 -2
- package/lib-es/components/List/helpers/build-pagination-url.js.map +1 -1
- package/lib-es/components/Loading/index.js +2 -2
- package/lib-es/components/Loading/index.js.map +1 -1
- package/lib-es/components/SearchFilter/SearchFilterContainer.js +7 -5
- package/lib-es/components/SearchFilter/SearchFilterContainer.js.map +1 -1
- package/lib-es/constants/index.js +2 -1
- package/lib-es/constants/index.js.map +1 -1
- package/lib-es/helpers/build-query-fields.js +1 -1
- package/lib-es/helpers/build-query-fields.js.map +1 -1
- package/lib-es/helpers/get-component-id.js +7 -0
- package/lib-es/helpers/get-component-id.js.map +1 -0
- package/lib-es/helpers/index.js +1 -0
- package/lib-es/helpers/index.js.map +1 -1
- package/lib-es/index.js +1 -1
- package/lib-es/index.js.map +1 -1
- package/package.json +3 -2
- package/src/components/List/ListRender.js +56 -40
- package/src/components/List/components/Pagination/Classic.js +26 -6
- package/src/components/List/components/Pagination/ListPagination.js +8 -12
- package/src/components/List/helpers/build-pagination-items.js +11 -3
- package/src/components/List/helpers/build-pagination-url.js +2 -2
- package/src/components/Loading/index.js +2 -2
- package/src/components/SearchFilter/SearchFilterContainer.js +11 -5
- package/src/constants/index.js +4 -1
- package/src/helpers/build-query-fields.js +1 -1
- package/src/helpers/get-component-id.js +9 -0
- package/src/helpers/index.js +1 -0
- package/src/index.js +2 -1
- package/tests/unit/src/components/List/__snapshots__/ListRender.test.js.snap +4 -2
- package/tests/unit/src/components/List/helpers/__snapshots__/build-pagination-items.test.js.snap +21 -21
- package/tests/unit/src/components/Loading/__snapshots__/Loading.test.js.snap +2 -14
- package/tests/unit/src/helpers/__snapshots__/build-query-fields.test.js.snap +2 -2
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { useState, useEffect
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import Classic from './Classic';
|
|
4
4
|
import LoadMore from './LoadMore';
|
|
5
|
-
import { LOAD_MORE
|
|
5
|
+
import { LOAD_MORE } from '../../../../constants';
|
|
6
6
|
|
|
7
7
|
const ListPagination = ({
|
|
8
|
+
listRef,
|
|
8
9
|
listTotal,
|
|
9
10
|
name,
|
|
10
11
|
itemsPerPage,
|
|
@@ -15,18 +16,12 @@ const ListPagination = ({
|
|
|
15
16
|
...props
|
|
16
17
|
}) => {
|
|
17
18
|
const [showPagination, setShowPagination] = useState(true);
|
|
18
|
-
const paginationRef = useRef(null);
|
|
19
19
|
|
|
20
20
|
const isLoadMore = paginationType === LOAD_MORE;
|
|
21
|
+
|
|
21
22
|
const scrollOnClick = () => {
|
|
22
|
-
if (!isLoadMore &&
|
|
23
|
-
|
|
24
|
-
left: 0,
|
|
25
|
-
top:
|
|
26
|
-
window.pageYOffset -
|
|
27
|
-
SCROLL_OFFSET +
|
|
28
|
-
paginationRef.current.previousSibling.getBoundingClientRect().top
|
|
29
|
-
});
|
|
23
|
+
if (!isLoadMore && listRef && listRef.current) {
|
|
24
|
+
listRef.current.scrollIntoView();
|
|
30
25
|
}
|
|
31
26
|
};
|
|
32
27
|
|
|
@@ -54,13 +49,14 @@ const ListPagination = ({
|
|
|
54
49
|
};
|
|
55
50
|
|
|
56
51
|
return (
|
|
57
|
-
<div className="pagination"
|
|
52
|
+
<div className="pagination">
|
|
58
53
|
{isLoadMore ? <LoadMore {...paginationProps} /> : <Classic {...paginationProps} />}
|
|
59
54
|
</div>
|
|
60
55
|
);
|
|
61
56
|
};
|
|
62
57
|
|
|
63
58
|
ListPagination.propTypes = {
|
|
59
|
+
listRef: PropTypes.object.isRequired,
|
|
64
60
|
currentPage: PropTypes.number.isRequired,
|
|
65
61
|
paginationType: PropTypes.string.isRequired,
|
|
66
62
|
listTotal: PropTypes.number.isRequired,
|
|
@@ -3,7 +3,15 @@ import BlazeLink from '../../BlazeLink';
|
|
|
3
3
|
import buildPaginationUrl from './build-pagination-url';
|
|
4
4
|
import { PAGINATION_DISPLAY_LIMIT, PAGINATION_DIFFERENCE } from '../../../constants';
|
|
5
5
|
|
|
6
|
-
const buildPaginationItems = ({
|
|
6
|
+
const buildPaginationItems = ({
|
|
7
|
+
name,
|
|
8
|
+
numberOfPages,
|
|
9
|
+
currentPage,
|
|
10
|
+
query,
|
|
11
|
+
url,
|
|
12
|
+
onClick,
|
|
13
|
+
componentId
|
|
14
|
+
}) => {
|
|
7
15
|
const pages = [];
|
|
8
16
|
const paginationDifference =
|
|
9
17
|
currentPage > PAGINATION_DIFFERENCE ? currentPage - PAGINATION_DIFFERENCE : 0;
|
|
@@ -13,7 +21,7 @@ const buildPaginationItems = ({ name, numberOfPages, currentPage, query, url, on
|
|
|
13
21
|
for (let index = 0; index < numberOfPages; index += 1) {
|
|
14
22
|
const page = index + 1 + paginationDifference;
|
|
15
23
|
if (pages.length < PAGINATION_DISPLAY_LIMIT && page <= numberOfPages) {
|
|
16
|
-
const href = buildPaginationUrl(name, page, query, url);
|
|
24
|
+
const href = buildPaginationUrl(name, page, query, url, componentId);
|
|
17
25
|
const pageHtml =
|
|
18
26
|
page === currentPage ? (
|
|
19
27
|
<span key={page} className="pagination_page-item--current">
|
|
@@ -26,7 +34,7 @@ const buildPaginationItems = ({ name, numberOfPages, currentPage, query, url, on
|
|
|
26
34
|
className="pagination_page-item"
|
|
27
35
|
onClick={onClick}
|
|
28
36
|
shallow
|
|
29
|
-
scroll
|
|
37
|
+
scroll={false}
|
|
30
38
|
ariaLabel={`Page ${page}`}>
|
|
31
39
|
{page}
|
|
32
40
|
</BlazeLink>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { stringify } from 'query-string';
|
|
2
2
|
import { PB_QUERY_CONST, PAGINATION_QUERY_CONST } from '../../../constants';
|
|
3
3
|
|
|
4
|
-
const buildPaginationUrl = (name, page, query, url) => {
|
|
4
|
+
const buildPaginationUrl = (name, page, query, url, componentId) => {
|
|
5
5
|
const newQuery = { ...query, [`${PB_QUERY_CONST}[${name}]${PAGINATION_QUERY_CONST}`]: page };
|
|
6
6
|
const stringQuery = stringify(newQuery);
|
|
7
|
-
return `${url}?${stringQuery}`;
|
|
7
|
+
return `${url}?${stringQuery}${componentId ? `#${componentId}` : ''}`;
|
|
8
8
|
};
|
|
9
9
|
|
|
10
10
|
export default buildPaginationUrl;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import dynamic from 'next/dynamic';
|
|
2
2
|
|
|
3
|
-
export default Loading;
|
|
3
|
+
export default dynamic(() => import(/* webpackChunkName: "blazePbLoading" */ './Loading'));
|
|
@@ -19,7 +19,8 @@ import {
|
|
|
19
19
|
getInheritedFilters,
|
|
20
20
|
getQueryProps,
|
|
21
21
|
buildRawQueryStringified,
|
|
22
|
-
buildFiltersQuery
|
|
22
|
+
buildFiltersQuery,
|
|
23
|
+
getComponentId
|
|
23
24
|
} from '../../helpers';
|
|
24
25
|
import { RAW_RESULTS } from './constants';
|
|
25
26
|
import { SCROLL_OFFSET } from '../../constants';
|
|
@@ -133,10 +134,13 @@ const SearchFilterContainer = ({
|
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
const handleSearch = newQuery => {
|
|
137
|
+
const componentId = listComponentName ? getComponentId(listComponentName) : '';
|
|
136
138
|
setDisplaySearchFilter(false);
|
|
137
139
|
const hashBit = asPath.split('#')[1] || '';
|
|
138
|
-
|
|
139
|
-
|
|
140
|
+
let parsedHashBit = hashBit ? `#${hashBit}` : '';
|
|
141
|
+
parsedHashBit = parsedHashBit || `#${componentId}`;
|
|
142
|
+
|
|
143
|
+
scrollToFirstList(componentId);
|
|
140
144
|
if (!newQuery) {
|
|
141
145
|
const baseQuery = `${currentUrl}${parsedHashBit}`;
|
|
142
146
|
setUrlPath(baseQuery);
|
|
@@ -149,8 +153,10 @@ const SearchFilterContainer = ({
|
|
|
149
153
|
return router.push('/Resolver', newUrl, { shallow: !url, scroll: false });
|
|
150
154
|
};
|
|
151
155
|
|
|
152
|
-
const scrollToFirstList =
|
|
153
|
-
const
|
|
156
|
+
const scrollToFirstList = componentId => {
|
|
157
|
+
const list = componentId
|
|
158
|
+
? document.getElementById(componentId)
|
|
159
|
+
: document.getElementsByClassName('list-top')[0];
|
|
154
160
|
const shouldScrollToFirstList = !url && list;
|
|
155
161
|
|
|
156
162
|
if (shouldScrollToFirstList) {
|
package/src/constants/index.js
CHANGED
|
@@ -178,6 +178,8 @@ const DATA_SUMMARY_URL_REGEX = /(https?:\/\/)?(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,2
|
|
|
178
178
|
const DATA_SUMMARY_TEL_REGEX = /^\+{0,1}[0-9\(\)\.\- \/]{7,}$/; // note: very loose phone number match not for validation
|
|
179
179
|
const SIZE = process.env.BLAZE_PB_SEARCH_FILETER_AGG_SIZE || 500;
|
|
180
180
|
|
|
181
|
+
const COMPONENT_ID_PREFIX = 'pb-';
|
|
182
|
+
|
|
181
183
|
export {
|
|
182
184
|
BANNER_LOADING,
|
|
183
185
|
BANNER_EMPTY,
|
|
@@ -286,5 +288,6 @@ export {
|
|
|
286
288
|
DATA_SUMMARY_URL_REGEX,
|
|
287
289
|
DATA_SUMMARY_TEL_REGEX,
|
|
288
290
|
VIMEO_OEMBED_URL,
|
|
289
|
-
SIZE
|
|
291
|
+
SIZE,
|
|
292
|
+
COMPONENT_ID_PREFIX
|
|
290
293
|
};
|
package/src/helpers/index.js
CHANGED
|
@@ -61,3 +61,4 @@ export { default as shouldReturn } from './should-return';
|
|
|
61
61
|
export { default as shouldSkipSingleQuery } from './should-skip-single-query';
|
|
62
62
|
export { default as buildRawQueryStringified } from './build-raw-query-stringified';
|
|
63
63
|
export { default as buildFiltersQuery } from './build-filters-query';
|
|
64
|
+
export { default as getComponentId } from './get-component-id';
|
package/src/index.js
CHANGED
|
@@ -25,7 +25,8 @@ export {
|
|
|
25
25
|
buildFiltersQuery,
|
|
26
26
|
getUnpublishedEntityName,
|
|
27
27
|
renderChildren,
|
|
28
|
-
hasChildren
|
|
28
|
+
hasChildren,
|
|
29
|
+
getComponentId
|
|
29
30
|
} from './helpers';
|
|
30
31
|
export { withTitle } from './HOC';
|
|
31
32
|
export { useGetEntitySchema, useGetEntitySchemasAsObj, useGetSingleEntitySchema } from './hooks';
|
|
@@ -4,8 +4,9 @@ exports[`ListRender component should not render a List if no actionKey match is
|
|
|
4
4
|
|
|
5
5
|
exports[`ListRender component should not render a List with total if displayTotal is true 1`] = `
|
|
6
6
|
<DocumentFragment>
|
|
7
|
-
<
|
|
7
|
+
<div
|
|
8
8
|
class="list-top"
|
|
9
|
+
id="pb-list"
|
|
9
10
|
/>
|
|
10
11
|
<div
|
|
11
12
|
class="list_total_results w-full text-left p-4"
|
|
@@ -23,8 +24,9 @@ exports[`ListRender component should not render a List with total if displayTota
|
|
|
23
24
|
|
|
24
25
|
exports[`ListRender component should render a List based on passed parameters 1`] = `
|
|
25
26
|
<DocumentFragment>
|
|
26
|
-
<
|
|
27
|
+
<div
|
|
27
28
|
class="list-top"
|
|
29
|
+
id="pb-list"
|
|
28
30
|
/>
|
|
29
31
|
<div>
|
|
30
32
|
Mocked List Comp
|
package/tests/unit/src/components/List/helpers/__snapshots__/build-pagination-items.test.js.snap
CHANGED
|
@@ -10,7 +10,7 @@ Array [
|
|
|
10
10
|
href="url?pb%5Blist-1%5D%5Bpage%5D=1"
|
|
11
11
|
name=""
|
|
12
12
|
onClick={[MockFunction]}
|
|
13
|
-
scroll={
|
|
13
|
+
scroll={false}
|
|
14
14
|
shallow={true}
|
|
15
15
|
title=""
|
|
16
16
|
>
|
|
@@ -29,7 +29,7 @@ Array [
|
|
|
29
29
|
href="url?pb%5Blist-1%5D%5Bpage%5D=3"
|
|
30
30
|
name=""
|
|
31
31
|
onClick={[MockFunction]}
|
|
32
|
-
scroll={
|
|
32
|
+
scroll={false}
|
|
33
33
|
shallow={true}
|
|
34
34
|
title=""
|
|
35
35
|
>
|
|
@@ -43,7 +43,7 @@ Array [
|
|
|
43
43
|
href="url?pb%5Blist-1%5D%5Bpage%5D=4"
|
|
44
44
|
name=""
|
|
45
45
|
onClick={[MockFunction]}
|
|
46
|
-
scroll={
|
|
46
|
+
scroll={false}
|
|
47
47
|
shallow={true}
|
|
48
48
|
title=""
|
|
49
49
|
>
|
|
@@ -62,7 +62,7 @@ Array [
|
|
|
62
62
|
href="url?pb%5Blist-3%5D%5Bpage%5D=1"
|
|
63
63
|
name=""
|
|
64
64
|
onClick={null}
|
|
65
|
-
scroll={
|
|
65
|
+
scroll={false}
|
|
66
66
|
shallow={true}
|
|
67
67
|
title=""
|
|
68
68
|
>
|
|
@@ -76,7 +76,7 @@ Array [
|
|
|
76
76
|
href="url?pb%5Blist-3%5D%5Bpage%5D=2"
|
|
77
77
|
name=""
|
|
78
78
|
onClick={null}
|
|
79
|
-
scroll={
|
|
79
|
+
scroll={false}
|
|
80
80
|
shallow={true}
|
|
81
81
|
title=""
|
|
82
82
|
>
|
|
@@ -90,7 +90,7 @@ Array [
|
|
|
90
90
|
href="url?pb%5Blist-3%5D%5Bpage%5D=3"
|
|
91
91
|
name=""
|
|
92
92
|
onClick={null}
|
|
93
|
-
scroll={
|
|
93
|
+
scroll={false}
|
|
94
94
|
shallow={true}
|
|
95
95
|
title=""
|
|
96
96
|
>
|
|
@@ -104,7 +104,7 @@ Array [
|
|
|
104
104
|
href="url?pb%5Blist-3%5D%5Bpage%5D=4"
|
|
105
105
|
name=""
|
|
106
106
|
onClick={null}
|
|
107
|
-
scroll={
|
|
107
|
+
scroll={false}
|
|
108
108
|
shallow={true}
|
|
109
109
|
title=""
|
|
110
110
|
>
|
|
@@ -123,7 +123,7 @@ Array [
|
|
|
123
123
|
href="url?pb%5Blist-3%5D%5Bpage%5D=6"
|
|
124
124
|
name=""
|
|
125
125
|
onClick={null}
|
|
126
|
-
scroll={
|
|
126
|
+
scroll={false}
|
|
127
127
|
shallow={true}
|
|
128
128
|
title=""
|
|
129
129
|
>
|
|
@@ -137,7 +137,7 @@ Array [
|
|
|
137
137
|
href="url?pb%5Blist-3%5D%5Bpage%5D=7"
|
|
138
138
|
name=""
|
|
139
139
|
onClick={null}
|
|
140
|
-
scroll={
|
|
140
|
+
scroll={false}
|
|
141
141
|
shallow={true}
|
|
142
142
|
title=""
|
|
143
143
|
>
|
|
@@ -151,7 +151,7 @@ Array [
|
|
|
151
151
|
href="url?pb%5Blist-3%5D%5Bpage%5D=8"
|
|
152
152
|
name=""
|
|
153
153
|
onClick={null}
|
|
154
|
-
scroll={
|
|
154
|
+
scroll={false}
|
|
155
155
|
shallow={true}
|
|
156
156
|
title=""
|
|
157
157
|
>
|
|
@@ -165,7 +165,7 @@ Array [
|
|
|
165
165
|
href="url?pb%5Blist-3%5D%5Bpage%5D=9"
|
|
166
166
|
name=""
|
|
167
167
|
onClick={null}
|
|
168
|
-
scroll={
|
|
168
|
+
scroll={false}
|
|
169
169
|
shallow={true}
|
|
170
170
|
title=""
|
|
171
171
|
>
|
|
@@ -179,7 +179,7 @@ Array [
|
|
|
179
179
|
href="url?pb%5Blist-3%5D%5Bpage%5D=10"
|
|
180
180
|
name=""
|
|
181
181
|
onClick={null}
|
|
182
|
-
scroll={
|
|
182
|
+
scroll={false}
|
|
183
183
|
shallow={true}
|
|
184
184
|
title=""
|
|
185
185
|
>
|
|
@@ -198,7 +198,7 @@ Array [
|
|
|
198
198
|
href="url?pb%5Blist-2%5D%5Bpage%5D=4"
|
|
199
199
|
name=""
|
|
200
200
|
onClick={null}
|
|
201
|
-
scroll={
|
|
201
|
+
scroll={false}
|
|
202
202
|
shallow={true}
|
|
203
203
|
title=""
|
|
204
204
|
>
|
|
@@ -212,7 +212,7 @@ Array [
|
|
|
212
212
|
href="url?pb%5Blist-2%5D%5Bpage%5D=5"
|
|
213
213
|
name=""
|
|
214
214
|
onClick={null}
|
|
215
|
-
scroll={
|
|
215
|
+
scroll={false}
|
|
216
216
|
shallow={true}
|
|
217
217
|
title=""
|
|
218
218
|
>
|
|
@@ -226,7 +226,7 @@ Array [
|
|
|
226
226
|
href="url?pb%5Blist-2%5D%5Bpage%5D=6"
|
|
227
227
|
name=""
|
|
228
228
|
onClick={null}
|
|
229
|
-
scroll={
|
|
229
|
+
scroll={false}
|
|
230
230
|
shallow={true}
|
|
231
231
|
title=""
|
|
232
232
|
>
|
|
@@ -240,7 +240,7 @@ Array [
|
|
|
240
240
|
href="url?pb%5Blist-2%5D%5Bpage%5D=7"
|
|
241
241
|
name=""
|
|
242
242
|
onClick={null}
|
|
243
|
-
scroll={
|
|
243
|
+
scroll={false}
|
|
244
244
|
shallow={true}
|
|
245
245
|
title=""
|
|
246
246
|
>
|
|
@@ -259,7 +259,7 @@ Array [
|
|
|
259
259
|
href="url?pb%5Blist-2%5D%5Bpage%5D=9"
|
|
260
260
|
name=""
|
|
261
261
|
onClick={null}
|
|
262
|
-
scroll={
|
|
262
|
+
scroll={false}
|
|
263
263
|
shallow={true}
|
|
264
264
|
title=""
|
|
265
265
|
>
|
|
@@ -273,7 +273,7 @@ Array [
|
|
|
273
273
|
href="url?pb%5Blist-2%5D%5Bpage%5D=10"
|
|
274
274
|
name=""
|
|
275
275
|
onClick={null}
|
|
276
|
-
scroll={
|
|
276
|
+
scroll={false}
|
|
277
277
|
shallow={true}
|
|
278
278
|
title=""
|
|
279
279
|
>
|
|
@@ -287,7 +287,7 @@ Array [
|
|
|
287
287
|
href="url?pb%5Blist-2%5D%5Bpage%5D=11"
|
|
288
288
|
name=""
|
|
289
289
|
onClick={null}
|
|
290
|
-
scroll={
|
|
290
|
+
scroll={false}
|
|
291
291
|
shallow={true}
|
|
292
292
|
title=""
|
|
293
293
|
>
|
|
@@ -301,7 +301,7 @@ Array [
|
|
|
301
301
|
href="url?pb%5Blist-2%5D%5Bpage%5D=12"
|
|
302
302
|
name=""
|
|
303
303
|
onClick={null}
|
|
304
|
-
scroll={
|
|
304
|
+
scroll={false}
|
|
305
305
|
shallow={true}
|
|
306
306
|
title=""
|
|
307
307
|
>
|
|
@@ -315,7 +315,7 @@ Array [
|
|
|
315
315
|
href="url?pb%5Blist-2%5D%5Bpage%5D=13"
|
|
316
316
|
name=""
|
|
317
317
|
onClick={null}
|
|
318
|
-
scroll={
|
|
318
|
+
scroll={false}
|
|
319
319
|
shallow={true}
|
|
320
320
|
title=""
|
|
321
321
|
>
|
|
@@ -18,21 +18,9 @@ exports[`Loading component should render dots loader if dots string is passed 1`
|
|
|
18
18
|
</DocumentFragment>
|
|
19
19
|
`;
|
|
20
20
|
|
|
21
|
-
exports[`Loading component should render spinner loader if no value or not supported value is passed to type 1`] =
|
|
22
|
-
<DocumentFragment>
|
|
23
|
-
<div
|
|
24
|
-
class="blaze-loading__spinner"
|
|
25
|
-
/>
|
|
26
|
-
</DocumentFragment>
|
|
27
|
-
`;
|
|
21
|
+
exports[`Loading component should render spinner loader if no value or not supported value is passed to type 1`] = `<DocumentFragment />`;
|
|
28
22
|
|
|
29
|
-
exports[`Loading component should render spinner loader if no value or not supported value is passed to type 2`] =
|
|
30
|
-
<DocumentFragment>
|
|
31
|
-
<div
|
|
32
|
-
class="blaze-loading__spinner"
|
|
33
|
-
/>
|
|
34
|
-
</DocumentFragment>
|
|
35
|
-
`;
|
|
23
|
+
exports[`Loading component should render spinner loader if no value or not supported value is passed to type 2`] = `<DocumentFragment />`;
|
|
36
24
|
|
|
37
25
|
exports[`Loading component should render spinner loader if spinner string is passed 1`] = `
|
|
38
26
|
<DocumentFragment>
|
|
@@ -7,7 +7,7 @@ exports[`build query field should return a string with additional field if list
|
|
|
7
7
|
name,category{name}
|
|
8
8
|
__typename
|
|
9
9
|
id
|
|
10
|
-
|
|
10
|
+
pageBuilderComponents: preparedPageBuilderComponents
|
|
11
11
|
}
|
|
12
12
|
},
|
|
13
13
|
total
|
|
@@ -21,7 +21,7 @@ exports[`build query field should return a string with correct data 1`] = `
|
|
|
21
21
|
name,category{name}
|
|
22
22
|
__typename
|
|
23
23
|
id
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
total
|