@shaxpir/duiduidui-models 1.10.0 → 1.10.1

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.
@@ -12,6 +12,7 @@ import { Conditions } from './Condition';
12
12
  export interface SearchState {
13
13
  query?: string;
14
14
  senseRank?: number;
15
+ phraseId?: number;
15
16
  conditions?: Conditions;
16
17
  }
17
18
  /**
@@ -35,6 +35,9 @@ function areSearchStatesEqual(a, b) {
35
35
  // Compare senseRank
36
36
  if (a.senseRank !== b.senseRank)
37
37
  return false;
38
+ // Compare phraseId
39
+ if (a.phraseId !== b.phraseId)
40
+ return false;
38
41
  // Compare conditions using JSON serialization (with sorted keys for consistency)
39
42
  const conditionsA = a.conditions ? JSON.stringify(sortConditions(a.conditions)) : undefined;
40
43
  const conditionsB = b.conditions ? JSON.stringify(sortConditions(b.conditions)) : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shaxpir/duiduidui-models",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/shaxpir/duiduidui-models"