@streamline-pulse/formkrafter-core 0.17.1 → 0.18.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.
@@ -27,6 +27,7 @@ export declare function iterateBricks(spec?: BrickSpec, path?: string): Generato
27
27
  path: string;
28
28
  }>;
29
29
  export declare function iterateSchemaBricks(spec?: BrickSpec): Generator<BrickSpec>;
30
+ export declare function defaultFormData(spec?: BrickSpec): Record<string, unknown>;
30
31
  export declare function buildValidationSchema(brickSpecs?: BrickSpec, locale?: string): {
31
32
  additionalProperties: boolean;
32
33
  errorMessage?: {
@@ -5,6 +5,6 @@ export type ValidationResult = {
5
5
  errors: Record<string, string>;
6
6
  warnings?: string[];
7
7
  };
8
- export declare const validateBrickSpecDataDetailed: (brickSpec: BrickSpec, data: unknown, locale?: string) => ValidationResult;
8
+ export declare const validateBrickSpecDataDetailed: (brickSpec: BrickSpec, data: unknown, locale?: string, ruleScope?: Record<string, unknown>) => ValidationResult;
9
9
  export declare const validateBrickSpecData: (brickSpec: BrickSpec, data: unknown, locale?: string) => boolean;
10
- export declare const validateFormData: (brickSpec: BrickSpec, data: unknown, locale?: string) => ValidationResult;
10
+ export declare const validateFormData: (brickSpec: BrickSpec, data: unknown, locale?: string, ruleScope?: Record<string, unknown>) => ValidationResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamline-pulse/formkrafter-core",
3
- "version": "0.17.1",
3
+ "version": "0.18.0",
4
4
  "description": "Framework-agnostic core for FormKrafter: form specs, RFC 6902 ops with undo/redo, Ajv validation, sandboxed rules engine and injectable services",
5
5
  "license": "MIT",
6
6
  "type": "module",