itmar-block-packages 1.6.2 → 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/README.md +18 -0
- package/build/index.asset.php +1 -1
- package/build/index.js +3 -3
- package/package.json +1 -1
- package/src/AnimationBlock.js +8 -8
- package/src/BlockPlace.js +62 -70
- package/src/DateElm.js +7 -7
- package/src/DraggableBox.js +4 -4
- package/src/GridControls.js +196 -137
- package/src/IconSelectControl.js +15 -15
- package/src/ShadowStyle.js +23 -23
- package/src/TypographyControls.js +5 -5
- package/src/ZipAddress.js +3 -3
- package/src/customFooks.js +1 -1
- package/src/index.js +3 -0
- package/src/validationCheck.js +10 -0
- package/src/wordpressApi.js +8 -8
- package/languages/itmar-block-packages-ja-2e59d6ebc088ea4b3d475a06e1e94824.json +0 -1
- package/languages/itmar-block-packages-ja-314423d5ad20380dc5fb85a96050381e.json +0 -1
- package/languages/itmar-block-packages-ja-3e946be5d900b4a727047c8a51bb058e.json +0 -1
- package/languages/itmar-block-packages-ja-5f1760422a0125b48fdcca644f4db89f.json +0 -1
- package/languages/itmar-block-packages-ja-800102e626a7ce0305d324a5bb0ee61e.json +0 -1
- package/languages/itmar-block-packages-ja-865f209aff5ee1f8efb51f6a62e8d8e1.json +0 -1
- package/languages/itmar-block-packages-ja-88eb778e4da0e010ceace8232ab1a901.json +0 -1
- package/languages/itmar-block-packages-ja-a418e2f5e97a053f5e0785a30f28b854.json +0 -1
- package/languages/itmar-block-packages-ja-ce2d14d174f0af0f13cd9a1302cebdd7.json +0 -1
- package/languages/itmar-block-packages-ja-f55909920e3bd84845271a62dbfb8dfe.json +0 -1
- package/languages/itmar-block-packages-ja-f6bd3c69ad85ee9ae9f1315af8f44e4a.json +0 -1
- package/languages/itmar-block-packages-ja.mo +0 -0
- package/languages/itmar-block-packages-ja.po +0 -1485
- package/languages/itmar-block-packages.pot +0 -530
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.7.0 =
|
|
18
|
+
- バリデーションチェック用の関数を集めるためのvalidationCheck.jsを新設し、URLの形式をチェックするisValidUrlWithUrlApiを加えた。
|
|
19
|
+
|
|
20
|
+
= 1.6.3 =
|
|
21
|
+
- IconSelectControlに設定できるアイコンをFontAwesomeに加え、画像、アバターを選択できるようにした
|
|
22
|
+
|
|
17
23
|
= 1.6.0 =
|
|
18
24
|
- fetchZipToAddressを新設
|
|
19
25
|
|
|
@@ -1132,4 +1138,16 @@ const handleZipSearch = async () => {
|
|
|
1132
1138
|
};
|
|
1133
1139
|
```
|
|
1134
1140
|
|
|
1141
|
+
## バリデーションチェックを行う関数
|
|
1142
|
+
### `isValidUrlWithUrlApi`
|
|
1143
|
+
`isValidUrlWithUrlApi` は、引数で与えた文字列がURLの形式であるかどうかのバリデーションチェックをします。
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
#### 使用例
|
|
1147
|
+
```
|
|
1148
|
+
if (isValidUrlWithUrlApi(headingContent)) {
|
|
1149
|
+
setAttributes({ selectedPageUrl: headingContent });
|
|
1150
|
+
}
|
|
1151
|
+
```
|
|
1152
|
+
|
|
1135
1153
|
|
package/build/index.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-data', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '931e44cdfd81bd73cb51');
|