@uniformdev/canvas 19.196.1-alpha.8 → 19.197.1-alpha.1
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.d.mts +23 -12
- package/dist/index.d.ts +23 -12
- package/dist/index.esm.js +12 -0
- package/dist/index.js +12 -0
- package/dist/index.mjs +12 -0
- package/package.json +5 -5
package/dist/index.d.mts
CHANGED
@@ -9949,6 +9949,7 @@ interface paths$6 {
|
|
9949
9949
|
parameters: {
|
9950
9950
|
query: {
|
9951
9951
|
projectId: string;
|
9952
|
+
id?: string;
|
9952
9953
|
};
|
9953
9954
|
header?: never;
|
9954
9955
|
path?: never;
|
@@ -10179,6 +10180,7 @@ interface paths$5 {
|
|
10179
10180
|
parameters: {
|
10180
10181
|
query: {
|
10181
10182
|
projectId: string;
|
10183
|
+
id?: string;
|
10182
10184
|
};
|
10183
10185
|
header?: never;
|
10184
10186
|
path?: never;
|
@@ -10432,10 +10434,7 @@ interface paths$4 {
|
|
10432
10434
|
path?: never;
|
10433
10435
|
cookie?: never;
|
10434
10436
|
};
|
10435
|
-
/**
|
10436
|
-
* @deprecated
|
10437
|
-
* @description Lists entity instances across all releases (and base). Default to draft state if entity supports it.
|
10438
|
-
*/
|
10437
|
+
/** @description Lists entity instances across all releases (and base). Default to draft state if entity supports it. */
|
10439
10438
|
get: {
|
10440
10439
|
parameters: {
|
10441
10440
|
query: {
|
@@ -10563,10 +10562,7 @@ interface paths$3 {
|
|
10563
10562
|
path?: never;
|
10564
10563
|
cookie?: never;
|
10565
10564
|
};
|
10566
|
-
/**
|
10567
|
-
* @deprecated
|
10568
|
-
* @description Lists all contents (adds, moves, deletes) of a release
|
10569
|
-
*/
|
10565
|
+
/** @description Lists all contents (adds, moves, deletes) of a release */
|
10570
10566
|
get: {
|
10571
10567
|
parameters: {
|
10572
10568
|
query: {
|
@@ -10612,10 +10608,7 @@ interface paths$3 {
|
|
10612
10608
|
};
|
10613
10609
|
put?: never;
|
10614
10610
|
post?: never;
|
10615
|
-
/**
|
10616
|
-
* @deprecated
|
10617
|
-
* @description Deletes a change from a release
|
10618
|
-
*/
|
10611
|
+
/** @description Deletes a change from a release */
|
10619
10612
|
delete: {
|
10620
10613
|
parameters: {
|
10621
10614
|
query?: never;
|
@@ -12299,6 +12292,15 @@ declare function subscribeToComposition({ projectId, compositionId, compositionS
|
|
12299
12292
|
*/
|
12300
12293
|
declare class PreviewClient extends ApiClient {
|
12301
12294
|
constructor(options: ClientOptions);
|
12295
|
+
/** Fetches a preview URL by ID */
|
12296
|
+
getPreviewUrl({ id }: {
|
12297
|
+
id: string;
|
12298
|
+
}): Promise<{
|
12299
|
+
id: string;
|
12300
|
+
name: string;
|
12301
|
+
url: string;
|
12302
|
+
order?: number;
|
12303
|
+
}>;
|
12302
12304
|
/** Fetches all preview URLs for a project */
|
12303
12305
|
getPreviewUrls(options?: ExceptProject<PreviewUrlsGetParameters>): Promise<{
|
12304
12306
|
previewUrls: {
|
@@ -12316,6 +12318,15 @@ declare class PreviewClient extends ApiClient {
|
|
12316
12318
|
deletePreviewUrl(body: ExceptProject<PreviewUrlDeleteParameters>): Promise<{
|
12317
12319
|
id: string;
|
12318
12320
|
}>;
|
12321
|
+
/** Fetches a preview viewport by ID */
|
12322
|
+
getPreviewViewport({ id }: {
|
12323
|
+
id: string;
|
12324
|
+
}): Promise<{
|
12325
|
+
id: string;
|
12326
|
+
name: string;
|
12327
|
+
icon: string;
|
12328
|
+
width: number;
|
12329
|
+
}>;
|
12319
12330
|
/** Fetches all preview viewports for a project */
|
12320
12331
|
getPreviewViewports(options?: ExceptProject<PreviewViewportsGetParameters>): Promise<{
|
12321
12332
|
previewViewports: {
|
package/dist/index.d.ts
CHANGED
@@ -9949,6 +9949,7 @@ interface paths$6 {
|
|
9949
9949
|
parameters: {
|
9950
9950
|
query: {
|
9951
9951
|
projectId: string;
|
9952
|
+
id?: string;
|
9952
9953
|
};
|
9953
9954
|
header?: never;
|
9954
9955
|
path?: never;
|
@@ -10179,6 +10180,7 @@ interface paths$5 {
|
|
10179
10180
|
parameters: {
|
10180
10181
|
query: {
|
10181
10182
|
projectId: string;
|
10183
|
+
id?: string;
|
10182
10184
|
};
|
10183
10185
|
header?: never;
|
10184
10186
|
path?: never;
|
@@ -10432,10 +10434,7 @@ interface paths$4 {
|
|
10432
10434
|
path?: never;
|
10433
10435
|
cookie?: never;
|
10434
10436
|
};
|
10435
|
-
/**
|
10436
|
-
* @deprecated
|
10437
|
-
* @description Lists entity instances across all releases (and base). Default to draft state if entity supports it.
|
10438
|
-
*/
|
10437
|
+
/** @description Lists entity instances across all releases (and base). Default to draft state if entity supports it. */
|
10439
10438
|
get: {
|
10440
10439
|
parameters: {
|
10441
10440
|
query: {
|
@@ -10563,10 +10562,7 @@ interface paths$3 {
|
|
10563
10562
|
path?: never;
|
10564
10563
|
cookie?: never;
|
10565
10564
|
};
|
10566
|
-
/**
|
10567
|
-
* @deprecated
|
10568
|
-
* @description Lists all contents (adds, moves, deletes) of a release
|
10569
|
-
*/
|
10565
|
+
/** @description Lists all contents (adds, moves, deletes) of a release */
|
10570
10566
|
get: {
|
10571
10567
|
parameters: {
|
10572
10568
|
query: {
|
@@ -10612,10 +10608,7 @@ interface paths$3 {
|
|
10612
10608
|
};
|
10613
10609
|
put?: never;
|
10614
10610
|
post?: never;
|
10615
|
-
/**
|
10616
|
-
* @deprecated
|
10617
|
-
* @description Deletes a change from a release
|
10618
|
-
*/
|
10611
|
+
/** @description Deletes a change from a release */
|
10619
10612
|
delete: {
|
10620
10613
|
parameters: {
|
10621
10614
|
query?: never;
|
@@ -12299,6 +12292,15 @@ declare function subscribeToComposition({ projectId, compositionId, compositionS
|
|
12299
12292
|
*/
|
12300
12293
|
declare class PreviewClient extends ApiClient {
|
12301
12294
|
constructor(options: ClientOptions);
|
12295
|
+
/** Fetches a preview URL by ID */
|
12296
|
+
getPreviewUrl({ id }: {
|
12297
|
+
id: string;
|
12298
|
+
}): Promise<{
|
12299
|
+
id: string;
|
12300
|
+
name: string;
|
12301
|
+
url: string;
|
12302
|
+
order?: number;
|
12303
|
+
}>;
|
12302
12304
|
/** Fetches all preview URLs for a project */
|
12303
12305
|
getPreviewUrls(options?: ExceptProject<PreviewUrlsGetParameters>): Promise<{
|
12304
12306
|
previewUrls: {
|
@@ -12316,6 +12318,15 @@ declare class PreviewClient extends ApiClient {
|
|
12316
12318
|
deletePreviewUrl(body: ExceptProject<PreviewUrlDeleteParameters>): Promise<{
|
12317
12319
|
id: string;
|
12318
12320
|
}>;
|
12321
|
+
/** Fetches a preview viewport by ID */
|
12322
|
+
getPreviewViewport({ id }: {
|
12323
|
+
id: string;
|
12324
|
+
}): Promise<{
|
12325
|
+
id: string;
|
12326
|
+
name: string;
|
12327
|
+
icon: string;
|
12328
|
+
width: number;
|
12329
|
+
}>;
|
12319
12330
|
/** Fetches all preview viewports for a project */
|
12320
12331
|
getPreviewViewports(options?: ExceptProject<PreviewViewportsGetParameters>): Promise<{
|
12321
12332
|
previewViewports: {
|
package/dist/index.esm.js
CHANGED
@@ -2790,6 +2790,12 @@ var PreviewClient = class extends ApiClient8 {
|
|
2790
2790
|
constructor(options) {
|
2791
2791
|
super(options);
|
2792
2792
|
}
|
2793
|
+
/** Fetches a preview URL by ID */
|
2794
|
+
async getPreviewUrl({ id }) {
|
2795
|
+
var _a;
|
2796
|
+
const result = await this.getPreviewUrls({ id });
|
2797
|
+
return (_a = result.previewUrls[0]) != null ? _a : null;
|
2798
|
+
}
|
2793
2799
|
/** Fetches all preview URLs for a project */
|
2794
2800
|
async getPreviewUrls(options) {
|
2795
2801
|
const { projectId } = this.options;
|
@@ -2812,6 +2818,12 @@ var PreviewClient = class extends ApiClient8 {
|
|
2812
2818
|
body: JSON.stringify({ ...body, projectId: this.options.projectId })
|
2813
2819
|
});
|
2814
2820
|
}
|
2821
|
+
/** Fetches a preview viewport by ID */
|
2822
|
+
async getPreviewViewport({ id }) {
|
2823
|
+
var _a;
|
2824
|
+
const result = await this.getPreviewViewports({ id });
|
2825
|
+
return (_a = result.previewViewports[0]) != null ? _a : null;
|
2826
|
+
}
|
2815
2827
|
/** Fetches all preview viewports for a project */
|
2816
2828
|
async getPreviewViewports(options) {
|
2817
2829
|
const { projectId } = this.options;
|
package/dist/index.js
CHANGED
@@ -2948,6 +2948,12 @@ var PreviewClient = class extends import_api9.ApiClient {
|
|
2948
2948
|
constructor(options) {
|
2949
2949
|
super(options);
|
2950
2950
|
}
|
2951
|
+
/** Fetches a preview URL by ID */
|
2952
|
+
async getPreviewUrl({ id }) {
|
2953
|
+
var _a;
|
2954
|
+
const result = await this.getPreviewUrls({ id });
|
2955
|
+
return (_a = result.previewUrls[0]) != null ? _a : null;
|
2956
|
+
}
|
2951
2957
|
/** Fetches all preview URLs for a project */
|
2952
2958
|
async getPreviewUrls(options) {
|
2953
2959
|
const { projectId } = this.options;
|
@@ -2970,6 +2976,12 @@ var PreviewClient = class extends import_api9.ApiClient {
|
|
2970
2976
|
body: JSON.stringify({ ...body, projectId: this.options.projectId })
|
2971
2977
|
});
|
2972
2978
|
}
|
2979
|
+
/** Fetches a preview viewport by ID */
|
2980
|
+
async getPreviewViewport({ id }) {
|
2981
|
+
var _a;
|
2982
|
+
const result = await this.getPreviewViewports({ id });
|
2983
|
+
return (_a = result.previewViewports[0]) != null ? _a : null;
|
2984
|
+
}
|
2973
2985
|
/** Fetches all preview viewports for a project */
|
2974
2986
|
async getPreviewViewports(options) {
|
2975
2987
|
const { projectId } = this.options;
|
package/dist/index.mjs
CHANGED
@@ -2790,6 +2790,12 @@ var PreviewClient = class extends ApiClient8 {
|
|
2790
2790
|
constructor(options) {
|
2791
2791
|
super(options);
|
2792
2792
|
}
|
2793
|
+
/** Fetches a preview URL by ID */
|
2794
|
+
async getPreviewUrl({ id }) {
|
2795
|
+
var _a;
|
2796
|
+
const result = await this.getPreviewUrls({ id });
|
2797
|
+
return (_a = result.previewUrls[0]) != null ? _a : null;
|
2798
|
+
}
|
2793
2799
|
/** Fetches all preview URLs for a project */
|
2794
2800
|
async getPreviewUrls(options) {
|
2795
2801
|
const { projectId } = this.options;
|
@@ -2812,6 +2818,12 @@ var PreviewClient = class extends ApiClient8 {
|
|
2812
2818
|
body: JSON.stringify({ ...body, projectId: this.options.projectId })
|
2813
2819
|
});
|
2814
2820
|
}
|
2821
|
+
/** Fetches a preview viewport by ID */
|
2822
|
+
async getPreviewViewport({ id }) {
|
2823
|
+
var _a;
|
2824
|
+
const result = await this.getPreviewViewports({ id });
|
2825
|
+
return (_a = result.previewViewports[0]) != null ? _a : null;
|
2826
|
+
}
|
2815
2827
|
/** Fetches all preview viewports for a project */
|
2816
2828
|
async getPreviewViewports(options) {
|
2817
2829
|
const { projectId } = this.options;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "19.
|
3
|
+
"version": "19.197.1-alpha.1+121ba80f7d",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -38,9 +38,9 @@
|
|
38
38
|
"pusher-js": "8.2.0"
|
39
39
|
},
|
40
40
|
"dependencies": {
|
41
|
-
"@uniformdev/assets": "19.
|
42
|
-
"@uniformdev/context": "19.
|
43
|
-
"@uniformdev/richtext": "19.
|
41
|
+
"@uniformdev/assets": "19.197.1-alpha.1+121ba80f7d",
|
42
|
+
"@uniformdev/context": "19.197.1-alpha.1+121ba80f7d",
|
43
|
+
"@uniformdev/richtext": "19.197.1-alpha.1+121ba80f7d",
|
44
44
|
"immer": "10.1.1"
|
45
45
|
},
|
46
46
|
"files": [
|
@@ -49,5 +49,5 @@
|
|
49
49
|
"publishConfig": {
|
50
50
|
"access": "public"
|
51
51
|
},
|
52
|
-
"gitHead": "
|
52
|
+
"gitHead": "121ba80f7deb449ef8cb6ef74c6088f9e2d89112"
|
53
53
|
}
|