@webikon/webentor-core 0.15.2 → 0.15.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.
- package/CHANGELOG.md +10 -0
- package/core-js/blocks-filters/_slider-settings.tsx +69 -60
- package/package.json +14 -10
- package/public/build/assets/coreEditorJs-C0kGg9L7.js +366 -0
- package/public/build/assets/{coreEditorJs-bf451E88.js.map → coreEditorJs-xHkmOZj0.js.map} +1 -1
- package/public/build/assets/{editor.deps-BY0wt7iZ.json → editor.deps-BlXjIMbQ.json} +1 -1
- package/public/build/manifest.json +2 -2
- package/resources/blocks/e-picker-query-loop/e-picker-query-loop.block.tsx +15 -12
- package/resources/blocks/e-query-loop/e-query-loop.block.tsx +32 -27
- package/resources/blocks/e-query-loop/taxonomy-controls.tsx +12 -10
- package/public/build/assets/coreEditorJs-hgmUqbSJ.js +0 -366
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"name": "_utils"
|
|
5
5
|
},
|
|
6
6
|
"editor.deps.json": {
|
|
7
|
-
"file": "assets/editor.deps-
|
|
7
|
+
"file": "assets/editor.deps-BlXjIMbQ.json",
|
|
8
8
|
"src": "editor.deps.json"
|
|
9
9
|
},
|
|
10
10
|
"resources/blocks/e-accordion/script.ts": {
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"isEntry": true
|
|
87
87
|
},
|
|
88
88
|
"resources/scripts/editor.ts": {
|
|
89
|
-
"file": "assets/coreEditorJs-
|
|
89
|
+
"file": "assets/coreEditorJs-C0kGg9L7.js",
|
|
90
90
|
"name": "coreEditorJs",
|
|
91
91
|
"src": "resources/scripts/editor.ts",
|
|
92
92
|
"isEntry": true,
|
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
Notice,
|
|
15
15
|
PanelBody,
|
|
16
|
+
PanelRow,
|
|
16
17
|
SelectControl,
|
|
17
18
|
TextControl,
|
|
18
19
|
} from '@wordpress/components';
|
|
@@ -142,18 +143,20 @@ const BlockEdit: React.FC<BlockEditProps<AttributesType>> = (props) => {
|
|
|
142
143
|
)}
|
|
143
144
|
</div>
|
|
144
145
|
|
|
145
|
-
<
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
146
|
+
<PanelRow>
|
|
147
|
+
<TextControl
|
|
148
|
+
label={__('Query ID', 'webentor')}
|
|
149
|
+
value={queryId}
|
|
150
|
+
onChange={(value) => {
|
|
151
|
+
setQuery({
|
|
152
|
+
queryId: value,
|
|
153
|
+
});
|
|
154
|
+
}}
|
|
155
|
+
help={__(
|
|
156
|
+
'This can be used to filter query params via `webentor/query_loop_args` hook.',
|
|
157
|
+
)}
|
|
158
|
+
/>
|
|
159
|
+
</PanelRow>
|
|
157
160
|
</PanelBody>
|
|
158
161
|
</InspectorControls>
|
|
159
162
|
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
__experimentalNumberControl as NumberControl,
|
|
14
14
|
PanelBody,
|
|
15
|
+
PanelRow,
|
|
15
16
|
SelectControl,
|
|
16
17
|
TextControl,
|
|
17
18
|
__experimentalToolsPanel as ToolsPanel,
|
|
@@ -143,21 +144,23 @@ const BlockEdit: React.FC<BlockEditProps<AttributesType>> = (props) => {
|
|
|
143
144
|
<>
|
|
144
145
|
<InspectorControls>
|
|
145
146
|
<PanelBody title="Loop Settings" initialOpen={true}>
|
|
146
|
-
<
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
147
|
+
<PanelRow>
|
|
148
|
+
<NumberControl
|
|
149
|
+
label={__('Posts Per Page', 'webentor')}
|
|
150
|
+
min={1}
|
|
151
|
+
max={20}
|
|
152
|
+
step="1"
|
|
153
|
+
value={query.perPage}
|
|
154
|
+
onChange={(value) => {
|
|
155
|
+
if (isNaN(value) || value < 1 || value > 100) {
|
|
156
|
+
return;
|
|
157
|
+
}
|
|
158
|
+
setQuery({
|
|
159
|
+
perPage: value,
|
|
160
|
+
});
|
|
161
|
+
}}
|
|
162
|
+
/>
|
|
163
|
+
</PanelRow>
|
|
161
164
|
|
|
162
165
|
<SelectControl
|
|
163
166
|
__nextHasNoMarginBottom
|
|
@@ -171,18 +174,20 @@ const BlockEdit: React.FC<BlockEditProps<AttributesType>> = (props) => {
|
|
|
171
174
|
)}
|
|
172
175
|
/>
|
|
173
176
|
|
|
174
|
-
<
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
177
|
+
<PanelRow>
|
|
178
|
+
<TextControl
|
|
179
|
+
label={__('Query ID', 'webentor')}
|
|
180
|
+
value={query.queryId}
|
|
181
|
+
onChange={(value) => {
|
|
182
|
+
setQuery({
|
|
183
|
+
queryId: value,
|
|
184
|
+
});
|
|
185
|
+
}}
|
|
186
|
+
help={__(
|
|
187
|
+
'This can be used to filter query params via `webentor/query_loop_args` hook.',
|
|
188
|
+
)}
|
|
189
|
+
/>
|
|
190
|
+
</PanelRow>
|
|
186
191
|
</PanelBody>
|
|
187
192
|
|
|
188
193
|
<ToolsPanel
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useEffect, useState } from 'react';
|
|
2
|
-
import { FormTokenField } from '@wordpress/components';
|
|
2
|
+
import { FormTokenField, PanelRow } from '@wordpress/components';
|
|
3
3
|
import { useDebounce } from '@wordpress/compose';
|
|
4
4
|
import { useSelect } from '@wordpress/data';
|
|
5
5
|
import { decodeEntities } from '@wordpress/html-entities';
|
|
@@ -170,15 +170,17 @@ function TaxonomyItem({ taxonomy, termIds, onChange }) {
|
|
|
170
170
|
};
|
|
171
171
|
return (
|
|
172
172
|
<div className="block-library-query-inspector__taxonomy-control">
|
|
173
|
-
<
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
173
|
+
<PanelRow>
|
|
174
|
+
<FormTokenField
|
|
175
|
+
label={taxonomy.name}
|
|
176
|
+
value={value}
|
|
177
|
+
onInputChange={debouncedSearch}
|
|
178
|
+
suggestions={suggestions}
|
|
179
|
+
displayTransform={decodeEntities}
|
|
180
|
+
onChange={onTermsChange}
|
|
181
|
+
__experimentalShowHowTo={false}
|
|
182
|
+
/>
|
|
183
|
+
</PanelRow>
|
|
182
184
|
</div>
|
|
183
185
|
);
|
|
184
186
|
}
|