@protobase/layout 0.8.2 → 0.10.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/condition.d.ts +1 -1
- package/dist/condition.js +1 -1
- package/package.json +2 -2
package/dist/condition.d.ts
CHANGED
|
@@ -13,6 +13,6 @@ export type ConditionParse = ({
|
|
|
13
13
|
export declare const parseCondition: (source: string) => ConditionParse;
|
|
14
14
|
/** True when the condition holds for `values`, keyed by the dotted paths in `condition.paths`. Functions are not supported. */
|
|
15
15
|
export declare const evaluateCondition: (condition: Condition, values: Record<string, unknown>) => boolean;
|
|
16
|
-
/** The resource a path counts (`
|
|
16
|
+
/** The resource a path counts (`billing_profiles.count`), when it is not a field of the record around it. */
|
|
17
17
|
export declare const countedResource: (path: string, isField: (name: string) => boolean) => string | undefined;
|
|
18
18
|
//#endregion
|
package/dist/condition.js
CHANGED
|
@@ -33,7 +33,7 @@ const parseCondition = (source) => {
|
|
|
33
33
|
};
|
|
34
34
|
/** True when the condition holds for `values`, keyed by the dotted paths in `condition.paths`. Functions are not supported. */
|
|
35
35
|
const evaluateCondition = (condition, values) => condition.ast !== void 0 && evaluateFilter(folded(condition.ast), values);
|
|
36
|
-
/** The resource a path counts (`
|
|
36
|
+
/** The resource a path counts (`billing_profiles.count`), when it is not a field of the record around it. */
|
|
37
37
|
const countedResource = (path, isField) => {
|
|
38
38
|
const [first, second, ...rest] = path.split(".");
|
|
39
39
|
return first && second === "count" && rest.length === 0 && !isField(first) ? first : void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/layout",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Composed pages for Protobase, written as JSX that compiles to plain data, with its JSX runtime.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"access": "public"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@protobase/schema": "0.
|
|
34
|
+
"@protobase/schema": "0.10.0",
|
|
35
35
|
"aip-parsers": "^1.0.0"
|
|
36
36
|
}
|
|
37
37
|
}
|