itmar-block-packages 1.3.1 → 1.3.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/README.md CHANGED
@@ -14,6 +14,12 @@ import {関数名又はコンポーネント名} from "itmar-block-packages"
14
14
  npm i @wordpress/scripts@^27.6.0 --save-dev
15
15
 
16
16
  ## 更新履歴
17
+ = 1.3.4 =
18
+ - BlockPlaceコンポーネントの高さにフリーサイズを追加し、デスクトップとモバイルでそれぞれ設定を可能うにした。それに伴ってcssPropertesのheight_prmのシグニチャーを変更。
19
+
20
+ = 1.3.2 =
21
+ - BlockPlaceコンポーネントのインナーブロックの方向で縦方向又は横方向を選択したとき反転の設定ができるようにした。
22
+
17
23
  = 1.3.1 =
18
24
  - edit.scssおよびstyle.scssの共通スタイルについては機能しないことが判明したので削除した。
19
25
 
@@ -123,10 +129,13 @@ px値
123
129
  ### height_prm
124
130
  heightのCSSを返します。
125
131
  #### 引数
126
- - `height` string
127
- fitの文字列
132
+ - `height` string
133
+ fit, full, freeの文字列
134
+ - `free_val` number
135
+ px値
128
136
  #### 戻り値
129
137
  - fitのとき`height: fit-content;`
138
+ - freeのとき`height: ${free_val}px;`
130
139
  - その他の文字列`height: 100%;`
131
140
 
132
141
 
@@ -535,6 +544,9 @@ WordPressのブロックエディタのサイドバーにブロックの配置
535
544
  onDirectionChange={(position) => {
536
545
  setAttributes({direction: position });
537
546
  }}
547
+ onReverseChange={(checked) => {
548
+ setAttributes({reverse: checked });
549
+ }}
538
550
  onFlexChange={(position) => {
539
551
  setAttributes({inner_align: position });
540
552
  }}
@@ -545,13 +557,16 @@ WordPressのブロックエディタのサイドバーにブロックの配置
545
557
  setAttributes({outer_vertical: position });
546
558
  }}
547
559
  onWidthChange={(position) => {
548
- setAttributes({outer_vertical: position });
560
+ setAttributes({width_val: position });
549
561
  }}
550
562
  onHeightChange={(value) => {
551
- setAttributes({ heightValue: value });
563
+ setAttributes({ height_val: value });
564
+ }}
565
+ onFreeWidthChange={(value) => {
566
+ setAttributes({free_width: position });
552
567
  }}
553
- onFreevalChange={(value) => {
554
- setAttributes({free_val: position });
568
+ onFreeHeightChange={(value) => {
569
+ setAttributes({free_height: position });
555
570
  }}
556
571
  onGridChange={(value) => {
557
572
  setAttributes({grid_info: position });
@@ -1 +1 @@
1
- <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '6bf9581405b2440b4010');
1
+ <?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '540ad5183fa359e4a73f');