@webikon/webentor-core 0.15.3 → 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.
@@ -2,11 +2,11 @@
2
2
  "wp-i18n",
3
3
  "wp-block-editor",
4
4
  "wp-blocks",
5
+ "wp-hooks",
5
6
  "wp-components",
6
7
  "wp-compose",
7
8
  "wp-data",
8
9
  "wp-element",
9
- "wp-hooks",
10
10
  "wp-html-entities",
11
11
  "wp-primitives"
12
12
  ]
@@ -4,7 +4,7 @@
4
4
  "name": "_utils"
5
5
  },
6
6
  "editor.deps.json": {
7
- "file": "assets/editor.deps-BY0wt7iZ.json",
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-hgmUqbSJ.js",
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
- <TextControl
146
- label={__('Query ID', 'webentor')}
147
- value={queryId}
148
- onChange={(value) => {
149
- setQuery({
150
- queryId: value,
151
- });
152
- }}
153
- help={__(
154
- 'This can be used to filter query params via `webentor/query_loop_args` hook.',
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
- <NumberControl
147
- label={__('Posts Per Page', 'webentor')}
148
- min={1}
149
- max={20}
150
- step="1"
151
- value={query.perPage}
152
- onChange={(value) => {
153
- if (isNaN(value) || value < 1 || value > 100) {
154
- return;
155
- }
156
- setQuery({
157
- perPage: value,
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
- <TextControl
175
- label={__('Query ID', 'webentor')}
176
- value={query.queryId}
177
- onChange={(value) => {
178
- setQuery({
179
- queryId: value,
180
- });
181
- }}
182
- help={__(
183
- 'This can be used to filter query params via `webentor/query_loop_args` hook.',
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
- <FormTokenField
174
- label={taxonomy.name}
175
- value={value}
176
- onInputChange={debouncedSearch}
177
- suggestions={suggestions}
178
- displayTransform={decodeEntities}
179
- onChange={onTermsChange}
180
- __experimentalShowHowTo={false}
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
  }