@streamline-pulse/formkrafter-core 0.15.2 → 0.17.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;
@@ -1,5 +1,6 @@
1
1
  export interface DataSourceRequestOptions {
2
2
  headers?: Record<string, string>;
3
+ path?: string;
3
4
  }
4
5
  export interface DataSourceServiceDefaults {
5
6
  credentials?: "omit" | "same-origin" | "include";
@@ -1,3 +1,4 @@
1
+ export declare function resolvePath(source: Record<string, unknown>, path: string): unknown;
1
2
  export declare function interpolateTemplate(template: string, dataMap?: Record<string, unknown>): string;
2
3
  export declare function parseHeaderLines(raw: unknown, dataMap?: Record<string, unknown>): Record<string, string> | undefined;
3
4
  export declare function appendSearchParam(url: string, param: string, term: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamline-pulse/formkrafter-core",
3
- "version": "0.15.2",
3
+ "version": "0.17.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",