itmar-block-packages 1.6.3 → 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 +15 -0
- package/build/index.asset.php +1 -1
- package/build/index.js +2 -2
- package/package.json +1 -1
- package/src/index.js +3 -0
- package/src/validationCheck.js +10 -0
- 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,9 @@ 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
|
+
|
|
17
20
|
= 1.6.3 =
|
|
18
21
|
- IconSelectControlに設定できるアイコンをFontAwesomeに加え、画像、アバターを選択できるようにした
|
|
19
22
|
|
|
@@ -1135,4 +1138,16 @@ const handleZipSearch = async () => {
|
|
|
1135
1138
|
};
|
|
1136
1139
|
```
|
|
1137
1140
|
|
|
1141
|
+
## バリデーションチェックを行う関数
|
|
1142
|
+
### `isValidUrlWithUrlApi`
|
|
1143
|
+
`isValidUrlWithUrlApi` は、引数で与えた文字列がURLの形式であるかどうかのバリデーションチェックをします。
|
|
1144
|
+
|
|
1145
|
+
|
|
1146
|
+
#### 使用例
|
|
1147
|
+
```
|
|
1148
|
+
if (isValidUrlWithUrlApi(headingContent)) {
|
|
1149
|
+
setAttributes({ selectedPageUrl: headingContent });
|
|
1150
|
+
}
|
|
1151
|
+
```
|
|
1152
|
+
|
|
1138
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');
|