@uniformdev/canvas 20.50.2-alpha.9 → 20.50.3-alpha.6
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 +1112 -975
- package/dist/index.d.ts +1112 -975
- package/dist/index.esm.js +13 -4
- package/dist/index.js +13 -5
- package/dist/index.mjs +13 -4
- package/package.json +5 -5
package/dist/index.esm.js
CHANGED
|
@@ -1122,7 +1122,6 @@ var EDGE_CACHE_DISABLED = -1;
|
|
|
1122
1122
|
var ASSET_PARAMETER_TYPE = "asset";
|
|
1123
1123
|
var ASSETS_SOURCE_UNIFORM = "uniform-assets";
|
|
1124
1124
|
var ASSETS_SOURCE_CUSTOM_URL = "custom-url";
|
|
1125
|
-
var REFERENCE_DATA_TYPE_ID = "uniformContentInternalReference";
|
|
1126
1125
|
|
|
1127
1126
|
// src/utils/guards.ts
|
|
1128
1127
|
function isRootEntryReference(root) {
|
|
@@ -3084,7 +3083,7 @@ var PreviewClient = class extends ApiClient9 {
|
|
|
3084
3083
|
|
|
3085
3084
|
// src/ProjectClient.ts
|
|
3086
3085
|
import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
|
|
3087
|
-
var _url2;
|
|
3086
|
+
var _url2, _projectsUrl;
|
|
3088
3087
|
var _ProjectClient = class _ProjectClient extends ApiClient10 {
|
|
3089
3088
|
constructor(options) {
|
|
3090
3089
|
super({ ...options, bypassCache: true });
|
|
@@ -3094,6 +3093,15 @@ var _ProjectClient = class _ProjectClient extends ApiClient10 {
|
|
|
3094
3093
|
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
|
|
3095
3094
|
return await this.apiClient(fetchUri);
|
|
3096
3095
|
}
|
|
3096
|
+
/**
|
|
3097
|
+
* Fetches projects grouped by team.
|
|
3098
|
+
* When teamId is provided, returns a single team with its projects.
|
|
3099
|
+
* When omitted, returns all accessible teams and their projects.
|
|
3100
|
+
*/
|
|
3101
|
+
async getProjects(options) {
|
|
3102
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _projectsUrl), options ? { ...options } : {});
|
|
3103
|
+
return await this.apiClient(fetchUri);
|
|
3104
|
+
}
|
|
3097
3105
|
/** Updates or creates (based on id) a Project */
|
|
3098
3106
|
async upsert(body) {
|
|
3099
3107
|
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
|
@@ -3113,7 +3121,9 @@ var _ProjectClient = class _ProjectClient extends ApiClient10 {
|
|
|
3113
3121
|
}
|
|
3114
3122
|
};
|
|
3115
3123
|
_url2 = new WeakMap();
|
|
3124
|
+
_projectsUrl = new WeakMap();
|
|
3116
3125
|
__privateAdd(_ProjectClient, _url2, "/api/v1/project");
|
|
3126
|
+
__privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
3117
3127
|
var ProjectClient = _ProjectClient;
|
|
3118
3128
|
|
|
3119
3129
|
// src/PromptClient.ts
|
|
@@ -3607,7 +3617,7 @@ function handleRichTextNodeBinding(object, options) {
|
|
|
3607
3617
|
import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
|
|
3608
3618
|
|
|
3609
3619
|
// src/.version.ts
|
|
3610
|
-
var version = "20.50.
|
|
3620
|
+
var version = "20.50.2";
|
|
3611
3621
|
|
|
3612
3622
|
// src/WorkflowClient.ts
|
|
3613
3623
|
import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
|
|
@@ -3721,7 +3731,6 @@ export {
|
|
|
3721
3731
|
PreviewClient,
|
|
3722
3732
|
ProjectClient,
|
|
3723
3733
|
PromptClient,
|
|
3724
|
-
REFERENCE_DATA_TYPE_ID,
|
|
3725
3734
|
RelationshipClient,
|
|
3726
3735
|
ReleaseClient,
|
|
3727
3736
|
ReleaseContentsClient,
|
package/dist/index.js
CHANGED
|
@@ -464,7 +464,6 @@ __export(src_exports, {
|
|
|
464
464
|
PreviewClient: () => PreviewClient,
|
|
465
465
|
ProjectClient: () => ProjectClient,
|
|
466
466
|
PromptClient: () => PromptClient,
|
|
467
|
-
REFERENCE_DATA_TYPE_ID: () => REFERENCE_DATA_TYPE_ID,
|
|
468
467
|
RelationshipClient: () => RelationshipClient,
|
|
469
468
|
ReleaseClient: () => ReleaseClient,
|
|
470
469
|
ReleaseContentsClient: () => ReleaseContentsClient,
|
|
@@ -1301,7 +1300,6 @@ var EDGE_CACHE_DISABLED = -1;
|
|
|
1301
1300
|
var ASSET_PARAMETER_TYPE = "asset";
|
|
1302
1301
|
var ASSETS_SOURCE_UNIFORM = "uniform-assets";
|
|
1303
1302
|
var ASSETS_SOURCE_CUSTOM_URL = "custom-url";
|
|
1304
|
-
var REFERENCE_DATA_TYPE_ID = "uniformContentInternalReference";
|
|
1305
1303
|
|
|
1306
1304
|
// src/utils/guards.ts
|
|
1307
1305
|
function isRootEntryReference(root) {
|
|
@@ -3263,7 +3261,7 @@ var PreviewClient = class extends import_api10.ApiClient {
|
|
|
3263
3261
|
|
|
3264
3262
|
// src/ProjectClient.ts
|
|
3265
3263
|
var import_api11 = require("@uniformdev/context/api");
|
|
3266
|
-
var _url2;
|
|
3264
|
+
var _url2, _projectsUrl;
|
|
3267
3265
|
var _ProjectClient = class _ProjectClient extends import_api11.ApiClient {
|
|
3268
3266
|
constructor(options) {
|
|
3269
3267
|
super({ ...options, bypassCache: true });
|
|
@@ -3273,6 +3271,15 @@ var _ProjectClient = class _ProjectClient extends import_api11.ApiClient {
|
|
|
3273
3271
|
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
|
|
3274
3272
|
return await this.apiClient(fetchUri);
|
|
3275
3273
|
}
|
|
3274
|
+
/**
|
|
3275
|
+
* Fetches projects grouped by team.
|
|
3276
|
+
* When teamId is provided, returns a single team with its projects.
|
|
3277
|
+
* When omitted, returns all accessible teams and their projects.
|
|
3278
|
+
*/
|
|
3279
|
+
async getProjects(options) {
|
|
3280
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _projectsUrl), options ? { ...options } : {});
|
|
3281
|
+
return await this.apiClient(fetchUri);
|
|
3282
|
+
}
|
|
3276
3283
|
/** Updates or creates (based on id) a Project */
|
|
3277
3284
|
async upsert(body) {
|
|
3278
3285
|
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
|
@@ -3292,7 +3299,9 @@ var _ProjectClient = class _ProjectClient extends import_api11.ApiClient {
|
|
|
3292
3299
|
}
|
|
3293
3300
|
};
|
|
3294
3301
|
_url2 = new WeakMap();
|
|
3302
|
+
_projectsUrl = new WeakMap();
|
|
3295
3303
|
__privateAdd(_ProjectClient, _url2, "/api/v1/project");
|
|
3304
|
+
__privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
3296
3305
|
var ProjectClient = _ProjectClient;
|
|
3297
3306
|
|
|
3298
3307
|
// src/PromptClient.ts
|
|
@@ -3786,7 +3795,7 @@ function handleRichTextNodeBinding(object, options) {
|
|
|
3786
3795
|
var import_api18 = require("@uniformdev/context/api");
|
|
3787
3796
|
|
|
3788
3797
|
// src/.version.ts
|
|
3789
|
-
var version = "20.50.
|
|
3798
|
+
var version = "20.50.2";
|
|
3790
3799
|
|
|
3791
3800
|
// src/WorkflowClient.ts
|
|
3792
3801
|
var import_api17 = require("@uniformdev/context/api");
|
|
@@ -3901,7 +3910,6 @@ var CanvasClientError = import_api18.ApiClientError;
|
|
|
3901
3910
|
PreviewClient,
|
|
3902
3911
|
ProjectClient,
|
|
3903
3912
|
PromptClient,
|
|
3904
|
-
REFERENCE_DATA_TYPE_ID,
|
|
3905
3913
|
RelationshipClient,
|
|
3906
3914
|
ReleaseClient,
|
|
3907
3915
|
ReleaseContentsClient,
|
package/dist/index.mjs
CHANGED
|
@@ -1122,7 +1122,6 @@ var EDGE_CACHE_DISABLED = -1;
|
|
|
1122
1122
|
var ASSET_PARAMETER_TYPE = "asset";
|
|
1123
1123
|
var ASSETS_SOURCE_UNIFORM = "uniform-assets";
|
|
1124
1124
|
var ASSETS_SOURCE_CUSTOM_URL = "custom-url";
|
|
1125
|
-
var REFERENCE_DATA_TYPE_ID = "uniformContentInternalReference";
|
|
1126
1125
|
|
|
1127
1126
|
// src/utils/guards.ts
|
|
1128
1127
|
function isRootEntryReference(root) {
|
|
@@ -3084,7 +3083,7 @@ var PreviewClient = class extends ApiClient9 {
|
|
|
3084
3083
|
|
|
3085
3084
|
// src/ProjectClient.ts
|
|
3086
3085
|
import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
|
|
3087
|
-
var _url2;
|
|
3086
|
+
var _url2, _projectsUrl;
|
|
3088
3087
|
var _ProjectClient = class _ProjectClient extends ApiClient10 {
|
|
3089
3088
|
constructor(options) {
|
|
3090
3089
|
super({ ...options, bypassCache: true });
|
|
@@ -3094,6 +3093,15 @@ var _ProjectClient = class _ProjectClient extends ApiClient10 {
|
|
|
3094
3093
|
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
|
|
3095
3094
|
return await this.apiClient(fetchUri);
|
|
3096
3095
|
}
|
|
3096
|
+
/**
|
|
3097
|
+
* Fetches projects grouped by team.
|
|
3098
|
+
* When teamId is provided, returns a single team with its projects.
|
|
3099
|
+
* When omitted, returns all accessible teams and their projects.
|
|
3100
|
+
*/
|
|
3101
|
+
async getProjects(options) {
|
|
3102
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _projectsUrl), options ? { ...options } : {});
|
|
3103
|
+
return await this.apiClient(fetchUri);
|
|
3104
|
+
}
|
|
3097
3105
|
/** Updates or creates (based on id) a Project */
|
|
3098
3106
|
async upsert(body) {
|
|
3099
3107
|
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
|
@@ -3113,7 +3121,9 @@ var _ProjectClient = class _ProjectClient extends ApiClient10 {
|
|
|
3113
3121
|
}
|
|
3114
3122
|
};
|
|
3115
3123
|
_url2 = new WeakMap();
|
|
3124
|
+
_projectsUrl = new WeakMap();
|
|
3116
3125
|
__privateAdd(_ProjectClient, _url2, "/api/v1/project");
|
|
3126
|
+
__privateAdd(_ProjectClient, _projectsUrl, "/api/v1/projects");
|
|
3117
3127
|
var ProjectClient = _ProjectClient;
|
|
3118
3128
|
|
|
3119
3129
|
// src/PromptClient.ts
|
|
@@ -3607,7 +3617,7 @@ function handleRichTextNodeBinding(object, options) {
|
|
|
3607
3617
|
import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
|
|
3608
3618
|
|
|
3609
3619
|
// src/.version.ts
|
|
3610
|
-
var version = "20.50.
|
|
3620
|
+
var version = "20.50.2";
|
|
3611
3621
|
|
|
3612
3622
|
// src/WorkflowClient.ts
|
|
3613
3623
|
import { ApiClient as ApiClient16 } from "@uniformdev/context/api";
|
|
@@ -3721,7 +3731,6 @@ export {
|
|
|
3721
3731
|
PreviewClient,
|
|
3722
3732
|
ProjectClient,
|
|
3723
3733
|
PromptClient,
|
|
3724
|
-
REFERENCE_DATA_TYPE_ID,
|
|
3725
3734
|
RelationshipClient,
|
|
3726
3735
|
ReleaseClient,
|
|
3727
3736
|
ReleaseContentsClient,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/canvas",
|
|
3
|
-
"version": "20.50.
|
|
3
|
+
"version": "20.50.3-alpha.6+3ffd0d8a44",
|
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
"svix": "1.71.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@uniformdev/assets": "20.50.
|
|
45
|
-
"@uniformdev/context": "20.50.
|
|
46
|
-
"@uniformdev/richtext": "20.50.
|
|
44
|
+
"@uniformdev/assets": "20.50.3-alpha.6+3ffd0d8a44",
|
|
45
|
+
"@uniformdev/context": "20.50.3-alpha.6+3ffd0d8a44",
|
|
46
|
+
"@uniformdev/richtext": "20.50.3-alpha.6+3ffd0d8a44",
|
|
47
47
|
"immer": "10.1.3"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"publishConfig": {
|
|
53
53
|
"access": "public"
|
|
54
54
|
},
|
|
55
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "3ffd0d8a44f3ab6b90835250a33f61db016e9e19"
|
|
56
56
|
}
|