@sanity/mutator 6.13.1 → 6.13.2-next.3

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +6 -6
  2. package/package.json +3 -3
package/lib/index.d.ts CHANGED
@@ -52,7 +52,7 @@ interface MutationParams {
52
52
  *
53
53
  * @internal
54
54
  */
55
- declare class Mutation {
55
+ export declare class Mutation {
56
56
  params: MutationParams;
57
57
  compiled?: (doc: Doc | null) => Doc | null;
58
58
  _appliesToMissingDocument: boolean | undefined;
@@ -265,7 +265,7 @@ interface CommitHandlerMessage {
265
265
  /**
266
266
  * @internal
267
267
  */
268
- declare class BufferedDocument {
268
+ export declare class BufferedDocument {
269
269
  private mutations;
270
270
  /**
271
271
  * The Document we are wrapping
@@ -339,7 +339,7 @@ declare class BufferedDocument {
339
339
  * @returns String representation of the path
340
340
  * @internal
341
341
  */
342
- declare function arrayToJSONMatchPath(pathArray: Path): string;
342
+ export declare function arrayToJSONMatchPath(pathArray: Path): string;
343
343
  /**
344
344
  * Extracts values matching the given JsonPath
345
345
  *
@@ -348,7 +348,7 @@ declare function arrayToJSONMatchPath(pathArray: Path): string;
348
348
  * @returns An array of values matching the given path
349
349
  * @public
350
350
  */
351
- declare function extract(path: string, value: unknown): unknown[];
351
+ export declare function extract(path: string, value: unknown): unknown[];
352
352
  /**
353
353
  * Extracts a value for the given JsonPath, and includes the specific path of where it was found
354
354
  *
@@ -357,9 +357,9 @@ declare function extract(path: string, value: unknown): unknown[];
357
357
  * @returns An array of objects with `path` and `value` keys
358
358
  * @internal
359
359
  */
360
- declare function extractWithPath(path: string, value: unknown): {
360
+ export declare function extractWithPath(path: string, value: unknown): {
361
361
  path: (string | number)[];
362
362
  value: unknown;
363
363
  }[];
364
- export { BufferedDocument, type CommitHandlerMessage, type Doc, type Document, type Mut, Mutation, type MutationParams, type SquashingBuffer, type SubmissionResponder, arrayToJSONMatchPath, extract, extractWithPath };
364
+ export type { CommitHandlerMessage, Doc, Document, Mut, MutationParams, SquashingBuffer, SubmissionResponder };
365
365
  //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/mutator",
3
- "version": "6.13.1",
3
+ "version": "6.13.2-next.3",
4
4
  "description": "A set of models to make it easier to utilize the powerful real time collaborative features of Sanity",
5
5
  "keywords": [
6
6
  "cms",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@sanity/diff-match-patch": "^3.2.0",
36
- "@sanity/types": "6.13.1",
36
+ "@sanity/types": "6.13.2-next.3+54095cc4db",
37
37
  "@sanity/uuid": "^3.0.3",
38
38
  "dequal": "^2.0.3",
39
39
  "lodash-es": "^4.18.1",
@@ -45,7 +45,7 @@
45
45
  "@repo/tsdown.config": "6.9.2",
46
46
  "@types/lodash-es": "^4.17.12",
47
47
  "@types/node": "^24.13.3",
48
- "tsdown": "^0.22.14",
48
+ "tsdown": "^0.23.0",
49
49
  "typescript": "^7.0.2",
50
50
  "vite": "^8.2.2",
51
51
  "vitest": "^4.1.11"