@globalbrain/sefirot 3.35.1 → 3.35.2

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.
@@ -62,7 +62,7 @@ export function useUrlQuerySync(
62
62
  const newQuery: Record<string, any> = {}
63
63
 
64
64
  for (const key in flattenedState) {
65
- if (!exclude.includes(key) && flattenedDefaultState[key] !== flattenedState[key]) {
65
+ if (!exclude.includes(key) && !isEqual(flattenedState[key], flattenedDefaultState[key])) {
66
66
  newQuery[key] = flattenedState[key]
67
67
  }
68
68
  }
@@ -94,7 +94,9 @@ function flattenObject(obj: Record<string, any>, path: string[] = []): Record<st
94
94
  for (const key in obj) {
95
95
  const value = obj[key]
96
96
 
97
- if (value && typeof value === 'object' && !Array.isArray(value)) {
97
+ if (Array.isArray(value)) {
98
+ result[path.concat(key).join('.')] = value.slice()
99
+ } else if (value && typeof value === 'object') {
98
100
  Object.assign(result, flattenObject(value, [...path, key]))
99
101
  } else {
100
102
  result[path.concat(key).join('.')] = value
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
- "version": "3.35.1",
3
+ "version": "3.35.2",
4
4
  "packageManager": "pnpm@8.15.4",
5
5
  "description": "Vue Components for Global Brain Design System.",
6
6
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",