@docuninja/builder2.0 0.0.87 → 0.0.88
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/builder/hooks/use-conditional-visibility.d.ts +6 -1
- package/dist/builder.es.js +6634 -6622
- package/dist/builder.iife.js +34 -34
- package/package.json +1 -1
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { ConditionFieldType, ConditionOperator, OperatorInfo, Rectangle } from '../index';
|
|
1
|
+
import { ConditionFieldType, ConditionOperator, OperatorInfo, Rectangle, RectangleConditional, SingleCondition } from '../index';
|
|
2
2
|
export declare function getOperatorsForFieldType(fieldType: ConditionFieldType): OperatorInfo[];
|
|
3
3
|
export declare function operatorNeedsValue(operator: ConditionOperator): boolean;
|
|
4
4
|
export declare function getFieldTypeFromRectangle(rectangle: Rectangle | undefined | null): ConditionFieldType | null;
|
|
5
|
+
export declare function isSingleCondition(conditional: RectangleConditional): conditional is SingleCondition;
|
|
6
|
+
export declare function isCompoundCondition(conditional: RectangleConditional): conditional is {
|
|
7
|
+
operator: "and" | "or";
|
|
8
|
+
conditions: SingleCondition[];
|
|
9
|
+
};
|
|
5
10
|
export declare function evaluateConditional(rectangle: Rectangle | null | undefined, state: {
|
|
6
11
|
checkboxes: Record<string, boolean>;
|
|
7
12
|
inputs: Record<string, string>;
|