@pronto-tools-and-more/components 15.35.0 → 15.37.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/dist/main.js +26 -10
- package/dist/parts/PathPrefix/PathPrefix.d.ts +1 -1
- package/package.json +4 -4
package/dist/main.js
CHANGED
@@ -88,20 +88,26 @@ var createTaxonomyFilter = (taxonomy = {}) => {
|
|
88
88
|
return [];
|
89
89
|
}
|
90
90
|
const innerFilter = [];
|
91
|
+
const innerNegatedFilter = [];
|
91
92
|
for (const [key, value] of Object.entries(taxonomy)) {
|
92
93
|
if (typeof value === "string") {
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
94
|
+
if (value[0] === "!") {
|
95
|
+
innerNegatedFilter.push({
|
96
|
+
[key]: {
|
97
|
+
value: value.substring(1)
|
98
|
+
}
|
99
|
+
});
|
100
|
+
} else {
|
101
|
+
innerFilter.push({
|
102
|
+
[key]: {
|
103
|
+
value
|
104
|
+
}
|
105
|
+
});
|
106
|
+
}
|
98
107
|
}
|
99
108
|
}
|
100
|
-
if (innerFilter.length === 0) {
|
101
|
-
return innerFilter;
|
102
|
-
}
|
103
109
|
const outerFilter = [
|
104
|
-
{
|
110
|
+
...innerFilter.length > 0 ? [{
|
105
111
|
taxonomies: {
|
106
112
|
content: {
|
107
113
|
value: {
|
@@ -109,7 +115,17 @@ var createTaxonomyFilter = (taxonomy = {}) => {
|
|
109
115
|
}
|
110
116
|
}
|
111
117
|
}
|
112
|
-
}
|
118
|
+
}] : [],
|
119
|
+
...innerNegatedFilter.length > 0 ? [{
|
120
|
+
taxonomies: {
|
121
|
+
content: {
|
122
|
+
value: {
|
123
|
+
OR: innerNegatedFilter
|
124
|
+
}
|
125
|
+
},
|
126
|
+
negated: true
|
127
|
+
}
|
128
|
+
}] : []
|
113
129
|
];
|
114
130
|
return outerFilter;
|
115
131
|
};
|
@@ -1 +1 @@
|
|
1
|
-
export declare const pathPrefix:
|
1
|
+
export declare const pathPrefix: any;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pronto-tools-and-more/components",
|
3
|
-
"version": "15.
|
3
|
+
"version": "15.37.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/main.js",
|
6
6
|
"types": "dist/main.d.ts",
|
@@ -17,9 +17,9 @@
|
|
17
17
|
"license": "MIT",
|
18
18
|
"devDependencies": {
|
19
19
|
"@types/node": "^22.10.1",
|
20
|
-
"@types/react": "^19.1.
|
21
|
-
"esbuild": "^0.25.
|
20
|
+
"@types/react": "^19.1.8",
|
21
|
+
"esbuild": "^0.25.5",
|
22
22
|
"react": "^19.1.0",
|
23
|
-
"ts-jest": "^29.
|
23
|
+
"ts-jest": "^29.4.0"
|
24
24
|
}
|
25
25
|
}
|