ingred-ui 38.0.2 → 38.1.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.
@@ -2,10 +2,14 @@
2
2
  * フリーワード検索マッチャーを作成する
3
3
  *
4
4
  * - カンマ区切り・空白区切りはどちらも複数語の OR(いずれかを含めばよい)として扱う
5
+ * - ` + ` または大文字の ` AND `(前後に空白必須)で AND 検索になる。
6
+ * 結合するのは区切りの直前・直後の語。手前の空白は OR のまま。
7
+ * 例: `apple + banana,grape` → (apple かつ banana)または grape
8
+ * 例: `apple banana,grape + juice` → apple または banana または(grape かつ juice)
5
9
  * - フィールドをクォート(`"..."`)で囲むと、そのフィールドは対象全体との完全一致
6
10
  * (大文字小文字・全角半角は区別しない)になる。クォートの有無はフィールドごとに
7
11
  * 判定するため、`"apple",banana` のように一部だけクォートしても意図通りに動く。
8
- * - 比較前に target・query の双方を正規化する(NFKC + 小文字化)
12
+ * - 比較前に target を正規化する(NFKC + 小文字化)。クエリはパース前に NFKC、トークンは比較用に小文字化
9
13
  * - 有効な検索語が1つもない場合(空クエリ、カンマだけのクエリなど)は
10
14
  * フィルタなし(常にマッチ)として扱う
11
15
  *
@@ -2,3 +2,5 @@
2
2
  * 検索用の文字列正規化(大文字小文字・全角半角を区別しない)
3
3
  */
4
4
  export declare const normalizeForSearch: (value: string) => string;
5
+ /** 構文解釈用(NFKC のみ)。全角の区切り・クォートを構文として認識するために使う。 */
6
+ export declare const normalizeForSearchParse: (value: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ingred-ui",
3
- "version": "38.0.2",
3
+ "version": "38.1.0",
4
4
  "description": "",
5
5
  "author": "CARTA HOLDINGS, Inc.",
6
6
  "license": "MIT",