@sanity/client 7.0.0 → 7.0.1-canary.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/index.browser.cjs +2 -14
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.cts +1366 -337
- package/dist/index.browser.d.ts +1366 -337
- package/dist/index.browser.js +2 -14
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +3 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1366 -337
- package/dist/index.d.ts +1366 -337
- package/dist/index.js +3 -15
- package/dist/index.js.map +1 -1
- package/dist/stega.browser.d.cts +1403 -374
- package/dist/stega.browser.d.ts +1403 -374
- package/dist/stega.d.cts +1403 -374
- package/dist/stega.d.ts +1403 -374
- package/package.json +1 -1
- package/src/SanityClient.ts +1069 -17
- package/umd/sanityClient.js +2 -14
package/umd/sanityClient.js
CHANGED
|
@@ -3291,14 +3291,8 @@ ${selectionOpts}`);
|
|
|
3291
3291
|
live;
|
|
3292
3292
|
projects;
|
|
3293
3293
|
users;
|
|
3294
|
-
/**
|
|
3295
|
-
* Private properties
|
|
3296
|
-
*/
|
|
3297
3294
|
#clientConfig;
|
|
3298
3295
|
#httpRequest;
|
|
3299
|
-
/**
|
|
3300
|
-
* Instance properties
|
|
3301
|
-
*/
|
|
3302
3296
|
listen = _listen;
|
|
3303
3297
|
constructor(httpRequest, config = defaultConfig) {
|
|
3304
3298
|
this.config(config), this.#httpRequest = httpRequest, this.assets = new ObservableAssetsClient(this, this.#httpRequest), this.datasets = new ObservableDatasetsClient(this, this.#httpRequest), this.live = new LiveClient(this), this.projects = new ObservableProjectsClient(this, this.#httpRequest), this.users = new ObservableUsersClient(this, this.#httpRequest);
|
|
@@ -3444,14 +3438,8 @@ ${selectionOpts}`);
|
|
|
3444
3438
|
* Observable version of the Sanity client, with the same configuration as the promise-based one
|
|
3445
3439
|
*/
|
|
3446
3440
|
observable;
|
|
3447
|
-
/**
|
|
3448
|
-
* Private properties
|
|
3449
|
-
*/
|
|
3450
3441
|
#clientConfig;
|
|
3451
3442
|
#httpRequest;
|
|
3452
|
-
/**
|
|
3453
|
-
* Instance properties
|
|
3454
|
-
*/
|
|
3455
3443
|
listen = _listen;
|
|
3456
3444
|
constructor(httpRequest, config = defaultConfig) {
|
|
3457
3445
|
this.config(config), this.#httpRequest = httpRequest, this.assets = new AssetsClient(this, this.#httpRequest), this.datasets = new DatasetsClient(this, this.#httpRequest), this.live = new LiveClient(this), this.projects = new ProjectsClient(this, this.#httpRequest), this.users = new UsersClient(this, this.#httpRequest), this.observable = new ObservableSanityClient(httpRequest, config);
|
|
@@ -3548,8 +3536,8 @@ ${selectionOpts}`);
|
|
|
3548
3536
|
* @param operations - Optional object of patch operations to initialize the patch instance with
|
|
3549
3537
|
* @returns Patch instance - call `.commit()` to perform the operations defined
|
|
3550
3538
|
*/
|
|
3551
|
-
patch(
|
|
3552
|
-
return new Patch(
|
|
3539
|
+
patch(selection, operations) {
|
|
3540
|
+
return new Patch(selection, operations, this);
|
|
3553
3541
|
}
|
|
3554
3542
|
/**
|
|
3555
3543
|
* Create a new transaction of mutations
|