@tempots/beatui 0.80.0 → 0.81.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.
@@ -1,5 +1,16 @@
1
1
  import type Ajv from 'ajv';
2
2
  import type { JSONSchema, SchemaConflict, NotViolation } from './schema-types';
3
+ /**
4
+ * Check if a JSON schema uses any conditional features that require
5
+ * re-evaluating the effective schema when the value changes.
6
+ *
7
+ * These features include:
8
+ * - `if`/`then`/`else` (conditional subschemas)
9
+ * - `dependentRequired` (2020-12)
10
+ * - `dependentSchemas` (2019-09/2020-12)
11
+ * - `dependencies` (draft-07)
12
+ */
13
+ export declare function hasConditionalFeatures(schema: JSONSchema | null | undefined): boolean;
3
14
  /**
4
15
  * Evaluate `not` subschema against the current value using AJV.
5
16
  * Returns a NotViolation if the value matches the disallowed schema.
@@ -6,7 +6,7 @@ import type { ControllerValidation } from '../form/controller/controller-validat
6
6
  import type { ValidationMode } from '../form/controller/union-controller';
7
7
  export type { JSONSchema, JSONSchemaDefinition, JSONSchemaType, SchemaConflict, AllOfMergeResult, NotViolation, } from './schema-types';
8
8
  export { mergeAllOf } from './schema-merge';
9
- export { evaluateNotViolation, composeEffectiveObjectSchema, evaluateIfThenElseOverlay, getEvaluatedProperties, } from './schema-conditionals';
9
+ export { evaluateNotViolation, composeEffectiveObjectSchema, evaluateIfThenElseOverlay, getEvaluatedProperties, hasConditionalFeatures, } from './schema-conditionals';
10
10
  export type SchemaContextOptions = {
11
11
  schema: JSONSchemaDefinition;
12
12
  definition: JSONSchemaDefinition;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/beatui",
3
- "version": "0.80.0",
3
+ "version": "0.81.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.umd.js",
6
6
  "module": "dist/index.es.js",