@uniformdev/canvas 20.14.1 → 20.14.2-alpha.43
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 +1232 -913
- package/dist/index.d.ts +1232 -913
- package/dist/index.esm.js +57 -16
- package/dist/index.js +62 -19
- package/dist/index.mjs +57 -16
- package/package.json +10 -8
package/dist/index.esm.js
CHANGED
@@ -2638,17 +2638,19 @@ var createCanvasChannel = ({
|
|
2638
2638
|
postMessage(message);
|
2639
2639
|
};
|
2640
2640
|
const ready = (options) => {
|
2641
|
-
var _a, _b;
|
2641
|
+
var _a, _b, _c;
|
2642
2642
|
if (typeof window === "undefined") {
|
2643
2643
|
return;
|
2644
2644
|
}
|
2645
2645
|
const framework = (_a = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _a.framework;
|
2646
|
-
const
|
2646
|
+
const version2 = (_b = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _b.version;
|
2647
|
+
const canvasPackageVersion = (_c = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _c.canvasPackageVersion;
|
2647
2648
|
const message = {
|
2648
2649
|
type: "ready",
|
2649
2650
|
framework,
|
2650
|
-
version,
|
2651
|
-
rsc: options == null ? void 0 : options.rsc
|
2651
|
+
version: version2,
|
2652
|
+
rsc: options == null ? void 0 : options.rsc,
|
2653
|
+
canvasPackageVersion
|
2652
2654
|
};
|
2653
2655
|
postMessage(message);
|
2654
2656
|
};
|
@@ -2937,10 +2939,44 @@ var PreviewClient = class extends ApiClient8 {
|
|
2937
2939
|
}
|
2938
2940
|
};
|
2939
2941
|
|
2940
|
-
// src/
|
2942
|
+
// src/ProjectClient.ts
|
2941
2943
|
import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
|
2944
|
+
var _url2;
|
2945
|
+
var _ProjectClient = class _ProjectClient extends ApiClient9 {
|
2946
|
+
constructor(options) {
|
2947
|
+
super({ ...options, bypassCache: true });
|
2948
|
+
}
|
2949
|
+
/** Fetches single Project */
|
2950
|
+
async get(options) {
|
2951
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
|
2952
|
+
return await this.apiClient(fetchUri);
|
2953
|
+
}
|
2954
|
+
/** Updates or creates (based on id) a Project */
|
2955
|
+
async upsert(body) {
|
2956
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
2957
|
+
return await this.apiClient(fetchUri, {
|
2958
|
+
method: "PUT",
|
2959
|
+
body: JSON.stringify({ ...body })
|
2960
|
+
});
|
2961
|
+
}
|
2962
|
+
/** Deletes a Project */
|
2963
|
+
async delete(body) {
|
2964
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
2965
|
+
await this.apiClient(fetchUri, {
|
2966
|
+
method: "DELETE",
|
2967
|
+
body: JSON.stringify({ ...body }),
|
2968
|
+
expectNoContent: true
|
2969
|
+
});
|
2970
|
+
}
|
2971
|
+
};
|
2972
|
+
_url2 = new WeakMap();
|
2973
|
+
__privateAdd(_ProjectClient, _url2, "/api/v1/project");
|
2974
|
+
var ProjectClient = _ProjectClient;
|
2975
|
+
|
2976
|
+
// src/PromptClient.ts
|
2977
|
+
import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
|
2942
2978
|
var PromptsUrl = "/api/v1/prompts";
|
2943
|
-
var PromptClient = class extends
|
2979
|
+
var PromptClient = class extends ApiClient10 {
|
2944
2980
|
constructor(options) {
|
2945
2981
|
super(options);
|
2946
2982
|
}
|
@@ -2971,9 +3007,9 @@ var PromptClient = class extends ApiClient9 {
|
|
2971
3007
|
};
|
2972
3008
|
|
2973
3009
|
// src/RelationshipClient.ts
|
2974
|
-
import { ApiClient as
|
3010
|
+
import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
|
2975
3011
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
2976
|
-
var RelationshipClient = class extends
|
3012
|
+
var RelationshipClient = class extends ApiClient11 {
|
2977
3013
|
constructor(options) {
|
2978
3014
|
super(options);
|
2979
3015
|
this.get = async (options) => {
|
@@ -2985,9 +3021,9 @@ var RelationshipClient = class extends ApiClient10 {
|
|
2985
3021
|
};
|
2986
3022
|
|
2987
3023
|
// src/ReleaseClient.ts
|
2988
|
-
import { ApiClient as
|
3024
|
+
import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
|
2989
3025
|
var releasesUrl = "/api/v1/releases";
|
2990
|
-
var ReleaseClient = class extends
|
3026
|
+
var ReleaseClient = class extends ApiClient12 {
|
2991
3027
|
constructor(options) {
|
2992
3028
|
super(options);
|
2993
3029
|
}
|
@@ -3027,9 +3063,9 @@ var ReleaseClient = class extends ApiClient11 {
|
|
3027
3063
|
};
|
3028
3064
|
|
3029
3065
|
// src/ReleaseContentsClient.ts
|
3030
|
-
import { ApiClient as
|
3066
|
+
import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
|
3031
3067
|
var releaseContentsUrl2 = "/api/v1/release-contents";
|
3032
|
-
var ReleaseContentsClient = class extends
|
3068
|
+
var ReleaseContentsClient = class extends ApiClient13 {
|
3033
3069
|
constructor(options) {
|
3034
3070
|
super(options);
|
3035
3071
|
}
|
@@ -3051,9 +3087,9 @@ var ReleaseContentsClient = class extends ApiClient12 {
|
|
3051
3087
|
};
|
3052
3088
|
|
3053
3089
|
// src/RouteClient.ts
|
3054
|
-
import { ApiClient as
|
3090
|
+
import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
|
3055
3091
|
var ROUTE_URL = "/api/v1/route";
|
3056
|
-
var RouteClient = class extends
|
3092
|
+
var RouteClient = class extends ApiClient14 {
|
3057
3093
|
constructor(options) {
|
3058
3094
|
var _a;
|
3059
3095
|
if (!options.limitPolicy) {
|
@@ -3369,10 +3405,13 @@ function handleRichTextNodeBinding(object, options) {
|
|
3369
3405
|
// src/index.ts
|
3370
3406
|
import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
|
3371
3407
|
|
3408
|
+
// src/.version.ts
|
3409
|
+
var version = "20.19.0";
|
3410
|
+
|
3372
3411
|
// src/WorkflowClient.ts
|
3373
|
-
import { ApiClient as
|
3412
|
+
import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
|
3374
3413
|
var workflowsUrl = "/api/v1/workflows";
|
3375
|
-
var WorkflowClient = class extends
|
3414
|
+
var WorkflowClient = class extends ApiClient15 {
|
3376
3415
|
constructor(options) {
|
3377
3416
|
super(options);
|
3378
3417
|
}
|
@@ -3469,6 +3508,7 @@ export {
|
|
3469
3508
|
LocaleClient,
|
3470
3509
|
PLACEHOLDER_ID,
|
3471
3510
|
PreviewClient,
|
3511
|
+
ProjectClient,
|
3472
3512
|
PromptClient,
|
3473
3513
|
RelationshipClient,
|
3474
3514
|
ReleaseClient,
|
@@ -3554,6 +3594,7 @@ export {
|
|
3554
3594
|
nullLimitPolicy,
|
3555
3595
|
parseComponentPlaceholderId,
|
3556
3596
|
parseVariableExpression,
|
3597
|
+
version,
|
3557
3598
|
walkNodeTree,
|
3558
3599
|
walkPropertyValues
|
3559
3600
|
};
|
package/dist/index.js
CHANGED
@@ -397,7 +397,7 @@ __export(src_exports, {
|
|
397
397
|
ATTRIBUTE_PARAMETER_TYPE: () => ATTRIBUTE_PARAMETER_TYPE,
|
398
398
|
ATTRIBUTE_PARAMETER_VALUE: () => ATTRIBUTE_PARAMETER_VALUE,
|
399
399
|
ATTRIBUTE_PLACEHOLDER: () => ATTRIBUTE_PLACEHOLDER,
|
400
|
-
ApiClientError: () =>
|
400
|
+
ApiClientError: () => import_api17.ApiClientError,
|
401
401
|
BatchEntry: () => BatchEntry,
|
402
402
|
BlockFormatError: () => BlockFormatError,
|
403
403
|
CANVAS_BLOCK_PARAM_TYPE: () => CANVAS_BLOCK_PARAM_TYPE,
|
@@ -452,6 +452,7 @@ __export(src_exports, {
|
|
452
452
|
LocaleClient: () => LocaleClient,
|
453
453
|
PLACEHOLDER_ID: () => PLACEHOLDER_ID,
|
454
454
|
PreviewClient: () => PreviewClient,
|
455
|
+
ProjectClient: () => ProjectClient,
|
455
456
|
PromptClient: () => PromptClient,
|
456
457
|
RelationshipClient: () => RelationshipClient,
|
457
458
|
ReleaseClient: () => ReleaseClient,
|
@@ -537,6 +538,7 @@ __export(src_exports, {
|
|
537
538
|
nullLimitPolicy: () => nullLimitPolicy,
|
538
539
|
parseComponentPlaceholderId: () => parseComponentPlaceholderId,
|
539
540
|
parseVariableExpression: () => parseVariableExpression,
|
541
|
+
version: () => version,
|
540
542
|
walkNodeTree: () => walkNodeTree,
|
541
543
|
walkPropertyValues: () => walkPropertyValues
|
542
544
|
});
|
@@ -2801,17 +2803,19 @@ var createCanvasChannel = ({
|
|
2801
2803
|
postMessage(message);
|
2802
2804
|
};
|
2803
2805
|
const ready = (options) => {
|
2804
|
-
var _a, _b;
|
2806
|
+
var _a, _b, _c;
|
2805
2807
|
if (typeof window === "undefined") {
|
2806
2808
|
return;
|
2807
2809
|
}
|
2808
2810
|
const framework = (_a = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _a.framework;
|
2809
|
-
const
|
2811
|
+
const version2 = (_b = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _b.version;
|
2812
|
+
const canvasPackageVersion = (_c = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _c.canvasPackageVersion;
|
2810
2813
|
const message = {
|
2811
2814
|
type: "ready",
|
2812
2815
|
framework,
|
2813
|
-
version,
|
2814
|
-
rsc: options == null ? void 0 : options.rsc
|
2816
|
+
version: version2,
|
2817
|
+
rsc: options == null ? void 0 : options.rsc,
|
2818
|
+
canvasPackageVersion
|
2815
2819
|
};
|
2816
2820
|
postMessage(message);
|
2817
2821
|
};
|
@@ -3100,10 +3104,44 @@ var PreviewClient = class extends import_api9.ApiClient {
|
|
3100
3104
|
}
|
3101
3105
|
};
|
3102
3106
|
|
3103
|
-
// src/
|
3107
|
+
// src/ProjectClient.ts
|
3104
3108
|
var import_api10 = require("@uniformdev/context/api");
|
3109
|
+
var _url2;
|
3110
|
+
var _ProjectClient = class _ProjectClient extends import_api10.ApiClient {
|
3111
|
+
constructor(options) {
|
3112
|
+
super({ ...options, bypassCache: true });
|
3113
|
+
}
|
3114
|
+
/** Fetches single Project */
|
3115
|
+
async get(options) {
|
3116
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
|
3117
|
+
return await this.apiClient(fetchUri);
|
3118
|
+
}
|
3119
|
+
/** Updates or creates (based on id) a Project */
|
3120
|
+
async upsert(body) {
|
3121
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
3122
|
+
return await this.apiClient(fetchUri, {
|
3123
|
+
method: "PUT",
|
3124
|
+
body: JSON.stringify({ ...body })
|
3125
|
+
});
|
3126
|
+
}
|
3127
|
+
/** Deletes a Project */
|
3128
|
+
async delete(body) {
|
3129
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
3130
|
+
await this.apiClient(fetchUri, {
|
3131
|
+
method: "DELETE",
|
3132
|
+
body: JSON.stringify({ ...body }),
|
3133
|
+
expectNoContent: true
|
3134
|
+
});
|
3135
|
+
}
|
3136
|
+
};
|
3137
|
+
_url2 = new WeakMap();
|
3138
|
+
__privateAdd(_ProjectClient, _url2, "/api/v1/project");
|
3139
|
+
var ProjectClient = _ProjectClient;
|
3140
|
+
|
3141
|
+
// src/PromptClient.ts
|
3142
|
+
var import_api11 = require("@uniformdev/context/api");
|
3105
3143
|
var PromptsUrl = "/api/v1/prompts";
|
3106
|
-
var PromptClient = class extends
|
3144
|
+
var PromptClient = class extends import_api11.ApiClient {
|
3107
3145
|
constructor(options) {
|
3108
3146
|
super(options);
|
3109
3147
|
}
|
@@ -3134,9 +3172,9 @@ var PromptClient = class extends import_api10.ApiClient {
|
|
3134
3172
|
};
|
3135
3173
|
|
3136
3174
|
// src/RelationshipClient.ts
|
3137
|
-
var
|
3175
|
+
var import_api12 = require("@uniformdev/context/api");
|
3138
3176
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
3139
|
-
var RelationshipClient = class extends
|
3177
|
+
var RelationshipClient = class extends import_api12.ApiClient {
|
3140
3178
|
constructor(options) {
|
3141
3179
|
super(options);
|
3142
3180
|
this.get = async (options) => {
|
@@ -3148,9 +3186,9 @@ var RelationshipClient = class extends import_api11.ApiClient {
|
|
3148
3186
|
};
|
3149
3187
|
|
3150
3188
|
// src/ReleaseClient.ts
|
3151
|
-
var
|
3189
|
+
var import_api13 = require("@uniformdev/context/api");
|
3152
3190
|
var releasesUrl = "/api/v1/releases";
|
3153
|
-
var ReleaseClient = class extends
|
3191
|
+
var ReleaseClient = class extends import_api13.ApiClient {
|
3154
3192
|
constructor(options) {
|
3155
3193
|
super(options);
|
3156
3194
|
}
|
@@ -3190,9 +3228,9 @@ var ReleaseClient = class extends import_api12.ApiClient {
|
|
3190
3228
|
};
|
3191
3229
|
|
3192
3230
|
// src/ReleaseContentsClient.ts
|
3193
|
-
var
|
3231
|
+
var import_api14 = require("@uniformdev/context/api");
|
3194
3232
|
var releaseContentsUrl2 = "/api/v1/release-contents";
|
3195
|
-
var ReleaseContentsClient = class extends
|
3233
|
+
var ReleaseContentsClient = class extends import_api14.ApiClient {
|
3196
3234
|
constructor(options) {
|
3197
3235
|
super(options);
|
3198
3236
|
}
|
@@ -3214,9 +3252,9 @@ var ReleaseContentsClient = class extends import_api13.ApiClient {
|
|
3214
3252
|
};
|
3215
3253
|
|
3216
3254
|
// src/RouteClient.ts
|
3217
|
-
var
|
3255
|
+
var import_api15 = require("@uniformdev/context/api");
|
3218
3256
|
var ROUTE_URL = "/api/v1/route";
|
3219
|
-
var RouteClient = class extends
|
3257
|
+
var RouteClient = class extends import_api15.ApiClient {
|
3220
3258
|
constructor(options) {
|
3221
3259
|
var _a;
|
3222
3260
|
if (!options.limitPolicy) {
|
@@ -3530,12 +3568,15 @@ function handleRichTextNodeBinding(object, options) {
|
|
3530
3568
|
}
|
3531
3569
|
|
3532
3570
|
// src/index.ts
|
3533
|
-
var
|
3571
|
+
var import_api17 = require("@uniformdev/context/api");
|
3572
|
+
|
3573
|
+
// src/.version.ts
|
3574
|
+
var version = "20.19.0";
|
3534
3575
|
|
3535
3576
|
// src/WorkflowClient.ts
|
3536
|
-
var
|
3577
|
+
var import_api16 = require("@uniformdev/context/api");
|
3537
3578
|
var workflowsUrl = "/api/v1/workflows";
|
3538
|
-
var WorkflowClient = class extends
|
3579
|
+
var WorkflowClient = class extends import_api16.ApiClient {
|
3539
3580
|
constructor(options) {
|
3540
3581
|
super(options);
|
3541
3582
|
}
|
@@ -3566,7 +3607,7 @@ var WorkflowClient = class extends import_api15.ApiClient {
|
|
3566
3607
|
};
|
3567
3608
|
|
3568
3609
|
// src/index.ts
|
3569
|
-
var CanvasClientError =
|
3610
|
+
var CanvasClientError = import_api17.ApiClientError;
|
3570
3611
|
// Annotate the CommonJS export names for ESM import in node:
|
3571
3612
|
0 && (module.exports = {
|
3572
3613
|
ASSETS_SOURCE_CUSTOM_URL,
|
@@ -3633,6 +3674,7 @@ var CanvasClientError = import_api16.ApiClientError;
|
|
3633
3674
|
LocaleClient,
|
3634
3675
|
PLACEHOLDER_ID,
|
3635
3676
|
PreviewClient,
|
3677
|
+
ProjectClient,
|
3636
3678
|
PromptClient,
|
3637
3679
|
RelationshipClient,
|
3638
3680
|
ReleaseClient,
|
@@ -3718,6 +3760,7 @@ var CanvasClientError = import_api16.ApiClientError;
|
|
3718
3760
|
nullLimitPolicy,
|
3719
3761
|
parseComponentPlaceholderId,
|
3720
3762
|
parseVariableExpression,
|
3763
|
+
version,
|
3721
3764
|
walkNodeTree,
|
3722
3765
|
walkPropertyValues
|
3723
3766
|
});
|
package/dist/index.mjs
CHANGED
@@ -2638,17 +2638,19 @@ var createCanvasChannel = ({
|
|
2638
2638
|
postMessage(message);
|
2639
2639
|
};
|
2640
2640
|
const ready = (options) => {
|
2641
|
-
var _a, _b;
|
2641
|
+
var _a, _b, _c;
|
2642
2642
|
if (typeof window === "undefined") {
|
2643
2643
|
return;
|
2644
2644
|
}
|
2645
2645
|
const framework = (_a = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _a.framework;
|
2646
|
-
const
|
2646
|
+
const version2 = (_b = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _b.version;
|
2647
|
+
const canvasPackageVersion = (_c = window.__UNIFORM_CONTEXTUAL_EDITING__) == null ? void 0 : _c.canvasPackageVersion;
|
2647
2648
|
const message = {
|
2648
2649
|
type: "ready",
|
2649
2650
|
framework,
|
2650
|
-
version,
|
2651
|
-
rsc: options == null ? void 0 : options.rsc
|
2651
|
+
version: version2,
|
2652
|
+
rsc: options == null ? void 0 : options.rsc,
|
2653
|
+
canvasPackageVersion
|
2652
2654
|
};
|
2653
2655
|
postMessage(message);
|
2654
2656
|
};
|
@@ -2937,10 +2939,44 @@ var PreviewClient = class extends ApiClient8 {
|
|
2937
2939
|
}
|
2938
2940
|
};
|
2939
2941
|
|
2940
|
-
// src/
|
2942
|
+
// src/ProjectClient.ts
|
2941
2943
|
import { ApiClient as ApiClient9 } from "@uniformdev/context/api";
|
2944
|
+
var _url2;
|
2945
|
+
var _ProjectClient = class _ProjectClient extends ApiClient9 {
|
2946
|
+
constructor(options) {
|
2947
|
+
super({ ...options, bypassCache: true });
|
2948
|
+
}
|
2949
|
+
/** Fetches single Project */
|
2950
|
+
async get(options) {
|
2951
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2), { ...options });
|
2952
|
+
return await this.apiClient(fetchUri);
|
2953
|
+
}
|
2954
|
+
/** Updates or creates (based on id) a Project */
|
2955
|
+
async upsert(body) {
|
2956
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
2957
|
+
return await this.apiClient(fetchUri, {
|
2958
|
+
method: "PUT",
|
2959
|
+
body: JSON.stringify({ ...body })
|
2960
|
+
});
|
2961
|
+
}
|
2962
|
+
/** Deletes a Project */
|
2963
|
+
async delete(body) {
|
2964
|
+
const fetchUri = this.createUrl(__privateGet(_ProjectClient, _url2));
|
2965
|
+
await this.apiClient(fetchUri, {
|
2966
|
+
method: "DELETE",
|
2967
|
+
body: JSON.stringify({ ...body }),
|
2968
|
+
expectNoContent: true
|
2969
|
+
});
|
2970
|
+
}
|
2971
|
+
};
|
2972
|
+
_url2 = new WeakMap();
|
2973
|
+
__privateAdd(_ProjectClient, _url2, "/api/v1/project");
|
2974
|
+
var ProjectClient = _ProjectClient;
|
2975
|
+
|
2976
|
+
// src/PromptClient.ts
|
2977
|
+
import { ApiClient as ApiClient10 } from "@uniformdev/context/api";
|
2942
2978
|
var PromptsUrl = "/api/v1/prompts";
|
2943
|
-
var PromptClient = class extends
|
2979
|
+
var PromptClient = class extends ApiClient10 {
|
2944
2980
|
constructor(options) {
|
2945
2981
|
super(options);
|
2946
2982
|
}
|
@@ -2971,9 +3007,9 @@ var PromptClient = class extends ApiClient9 {
|
|
2971
3007
|
};
|
2972
3008
|
|
2973
3009
|
// src/RelationshipClient.ts
|
2974
|
-
import { ApiClient as
|
3010
|
+
import { ApiClient as ApiClient11 } from "@uniformdev/context/api";
|
2975
3011
|
var RELATIONSHIPS_URL = "/api/v1/relationships";
|
2976
|
-
var RelationshipClient = class extends
|
3012
|
+
var RelationshipClient = class extends ApiClient11 {
|
2977
3013
|
constructor(options) {
|
2978
3014
|
super(options);
|
2979
3015
|
this.get = async (options) => {
|
@@ -2985,9 +3021,9 @@ var RelationshipClient = class extends ApiClient10 {
|
|
2985
3021
|
};
|
2986
3022
|
|
2987
3023
|
// src/ReleaseClient.ts
|
2988
|
-
import { ApiClient as
|
3024
|
+
import { ApiClient as ApiClient12 } from "@uniformdev/context/api";
|
2989
3025
|
var releasesUrl = "/api/v1/releases";
|
2990
|
-
var ReleaseClient = class extends
|
3026
|
+
var ReleaseClient = class extends ApiClient12 {
|
2991
3027
|
constructor(options) {
|
2992
3028
|
super(options);
|
2993
3029
|
}
|
@@ -3027,9 +3063,9 @@ var ReleaseClient = class extends ApiClient11 {
|
|
3027
3063
|
};
|
3028
3064
|
|
3029
3065
|
// src/ReleaseContentsClient.ts
|
3030
|
-
import { ApiClient as
|
3066
|
+
import { ApiClient as ApiClient13 } from "@uniformdev/context/api";
|
3031
3067
|
var releaseContentsUrl2 = "/api/v1/release-contents";
|
3032
|
-
var ReleaseContentsClient = class extends
|
3068
|
+
var ReleaseContentsClient = class extends ApiClient13 {
|
3033
3069
|
constructor(options) {
|
3034
3070
|
super(options);
|
3035
3071
|
}
|
@@ -3051,9 +3087,9 @@ var ReleaseContentsClient = class extends ApiClient12 {
|
|
3051
3087
|
};
|
3052
3088
|
|
3053
3089
|
// src/RouteClient.ts
|
3054
|
-
import { ApiClient as
|
3090
|
+
import { ApiClient as ApiClient14 } from "@uniformdev/context/api";
|
3055
3091
|
var ROUTE_URL = "/api/v1/route";
|
3056
|
-
var RouteClient = class extends
|
3092
|
+
var RouteClient = class extends ApiClient14 {
|
3057
3093
|
constructor(options) {
|
3058
3094
|
var _a;
|
3059
3095
|
if (!options.limitPolicy) {
|
@@ -3369,10 +3405,13 @@ function handleRichTextNodeBinding(object, options) {
|
|
3369
3405
|
// src/index.ts
|
3370
3406
|
import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
|
3371
3407
|
|
3408
|
+
// src/.version.ts
|
3409
|
+
var version = "20.19.0";
|
3410
|
+
|
3372
3411
|
// src/WorkflowClient.ts
|
3373
|
-
import { ApiClient as
|
3412
|
+
import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
|
3374
3413
|
var workflowsUrl = "/api/v1/workflows";
|
3375
|
-
var WorkflowClient = class extends
|
3414
|
+
var WorkflowClient = class extends ApiClient15 {
|
3376
3415
|
constructor(options) {
|
3377
3416
|
super(options);
|
3378
3417
|
}
|
@@ -3469,6 +3508,7 @@ export {
|
|
3469
3508
|
LocaleClient,
|
3470
3509
|
PLACEHOLDER_ID,
|
3471
3510
|
PreviewClient,
|
3511
|
+
ProjectClient,
|
3472
3512
|
PromptClient,
|
3473
3513
|
RelationshipClient,
|
3474
3514
|
ReleaseClient,
|
@@ -3554,6 +3594,7 @@ export {
|
|
3554
3594
|
nullLimitPolicy,
|
3555
3595
|
parseComponentPlaceholderId,
|
3556
3596
|
parseVariableExpression,
|
3597
|
+
version,
|
3557
3598
|
walkNodeTree,
|
3558
3599
|
walkPropertyValues
|
3559
3600
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@uniformdev/canvas",
|
3
|
-
"version": "20.14.
|
3
|
+
"version": "20.14.2-alpha.43+717cd1bdf8",
|
4
4
|
"description": "Common functionality and types for Uniform Canvas",
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
6
6
|
"main": "./dist/index.js",
|
@@ -19,15 +19,17 @@
|
|
19
19
|
"types": "./dist/index.d.ts",
|
20
20
|
"sideEffects": false,
|
21
21
|
"scripts": {
|
22
|
-
"build": "run-s update-openapi build:ts",
|
22
|
+
"build": "run-s update-openapi create-version build:ts",
|
23
23
|
"build:ts": "tsup",
|
24
|
-
"dev": "run-s update-openapi dev:ts",
|
24
|
+
"dev": "run-s update-openapi create-version dev:ts",
|
25
25
|
"dev:ts": "tsup --watch",
|
26
26
|
"clean": "rimraf dist",
|
27
|
-
"test": "
|
27
|
+
"test": "run-s create-version test:run",
|
28
|
+
"test:run": "jest --maxWorkers=1",
|
28
29
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
|
29
30
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
|
30
31
|
"update-openapi": "tsx ./scripts/update-openapi.cts",
|
32
|
+
"create-version": "tsx ./scripts/create-version-export.cts",
|
31
33
|
"document:prebuild": "api-extractor run --local"
|
32
34
|
},
|
33
35
|
"devDependencies": {
|
@@ -38,9 +40,9 @@
|
|
38
40
|
"p-throttle": "5.0.0"
|
39
41
|
},
|
40
42
|
"dependencies": {
|
41
|
-
"@uniformdev/assets": "20.14.
|
42
|
-
"@uniformdev/context": "20.14.
|
43
|
-
"@uniformdev/richtext": "20.14.
|
43
|
+
"@uniformdev/assets": "20.14.2-alpha.43+717cd1bdf8",
|
44
|
+
"@uniformdev/context": "20.14.2-alpha.43+717cd1bdf8",
|
45
|
+
"@uniformdev/richtext": "20.14.2-alpha.43+717cd1bdf8",
|
44
46
|
"immer": "10.1.1"
|
45
47
|
},
|
46
48
|
"files": [
|
@@ -49,5 +51,5 @@
|
|
49
51
|
"publishConfig": {
|
50
52
|
"access": "public"
|
51
53
|
},
|
52
|
-
"gitHead": "
|
54
|
+
"gitHead": "717cd1bdf832bb42df5c3907cf89fa99294b5e1a"
|
53
55
|
}
|