@streamline-pulse/formkrafter-core 0.15.1 → 0.16.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/ops/ops.d.ts CHANGED
@@ -13,7 +13,7 @@ export declare function addBrick(spec: BrickSpec, brick: BrickSpec, parentPath:
13
13
  export declare function removeBrick(spec: BrickSpec, path: string): SpecUpdate;
14
14
  export declare function moveBrick(spec: BrickSpec, from: string, to: string): SpecUpdate;
15
15
  export declare function duplicateBrick(spec: BrickSpec, path: string): SpecUpdate;
16
- export declare function updateBrickConfigs(spec: BrickSpec, uid: string, configs: BrickBaseConfigs & Record<string, unknown>): SpecUpdate;
17
- export declare function updateBrickStyles(spec: BrickSpec, uid: string, styles: BrickStyles<string>): SpecUpdate;
18
- export declare function updateBrickValidations(spec: BrickSpec, uid: string, validations: Validation[]): SpecUpdate;
19
- export declare function updateBrickRules(spec: BrickSpec, uid: string, rules: Rule[]): SpecUpdate;
16
+ export declare function updateBrickConfigs(spec: BrickSpec, path: string, configs: BrickBaseConfigs & Record<string, unknown>): SpecUpdate;
17
+ export declare function updateBrickStyles(spec: BrickSpec, path: string, styles: BrickStyles<string>): SpecUpdate;
18
+ export declare function updateBrickValidations(spec: BrickSpec, path: string, validations: Validation[]): SpecUpdate;
19
+ export declare function updateBrickRules(spec: BrickSpec, path: string, rules: Rule[]): SpecUpdate;
@@ -1,4 +1,3 @@
1
1
  import type { BrickSpec } from "../utils/brick-spec";
2
2
  export declare function pointerFromPath(path: string): string;
3
- export declare function pointerOfUid(spec: BrickSpec, uid: string): string | undefined;
4
3
  export declare function getBrickAt(spec: BrickSpec, path: string): BrickSpec | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamline-pulse/formkrafter-core",
3
- "version": "0.15.1",
3
+ "version": "0.16.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",
@@ -19,21 +19,21 @@
19
19
  "LICENSE"
20
20
  ],
21
21
  "scripts": {
22
- "build": "rm -rf dist && bun build lib/index.ts --outdir dist --format esm --packages external --sourcemap=linked && tsc -p . --emitDeclarationOnly",
22
+ "build": "rm -rf dist && bun build lib/index.ts --outdir dist --format esm --external acorn --external json-logic-js --external fast-json-patch --sourcemap=linked && tsc -p . --emitDeclarationOnly",
23
23
  "prepublishOnly": "cp ../../LICENSE . && bun run build",
24
24
  "test": "bun test"
25
25
  },
26
26
  "dependencies": {
27
27
  "acorn": "^8.17.0",
28
- "ajv": "^8.20.0",
29
- "ajv-errors": "^3.0.0",
30
- "json-logic-js": "^2.0.5",
31
28
  "fast-json-patch": "^3.1.1",
32
- "ajv-formats": "^3.0.1"
29
+ "json-logic-js": "^2.0.5"
33
30
  },
34
31
  "devDependencies": {
35
- "typescript": "^6.0.3",
36
- "@types/json-logic-js": "^2.0.8"
32
+ "@types/json-logic-js": "^2.0.8",
33
+ "ajv": "^8.20.0",
34
+ "ajv-errors": "^3.0.0",
35
+ "ajv-formats": "^3.0.1",
36
+ "typescript": "^6.0.3"
37
37
  },
38
38
  "exports": {
39
39
  ".": {