@uniformdev/canvas 17.1.1-alpha.152 → 17.2.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/chunk-IQWDQAHE.mjs +4 -0
- package/dist/cli/cli.d.ts +1 -1
- package/dist/cli/cli.js +1 -1
- package/dist/cli/cli.mjs +1 -1
- package/dist/{createEventBus-b9cdb6ff.d.ts → createEventBus-3f3f7633.d.ts} +52 -49
- package/dist/index.d.ts +209 -65
- package/dist/index.esm.js +1 -1
- package/dist/index.js +3 -3
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
- package/dist/chunk-PFL3XEAQ.mjs +0 -4
@@ -214,11 +214,11 @@ interface external$1 {
|
|
214
214
|
roleId: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
215
215
|
/**
|
216
216
|
* @description Permission type for this permission ComponentDefinition:
|
217
|
-
* read | write | delete
|
217
|
+
* read | write | create | delete
|
218
218
|
*
|
219
219
|
* @enum {string}
|
220
220
|
*/
|
221
|
-
permission: "read" | "write" | "delete";
|
221
|
+
permission: "read" | "write" | "create" | "delete";
|
222
222
|
/** @description State of the component that this permission applies to */
|
223
223
|
state: number;
|
224
224
|
};
|
@@ -370,23 +370,23 @@ interface external$1 {
|
|
370
370
|
* @description An instance of an integration data connector (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset"). These are created in the UI and shared across a whole project.
|
371
371
|
*/
|
372
372
|
DataConnection: {
|
373
|
-
/** @description Public ID of the data
|
373
|
+
/** @description Public ID of the data connection */
|
374
374
|
id: string;
|
375
|
-
/** @description Display name of the data
|
375
|
+
/** @description Display name of the data connection */
|
376
376
|
displayName: string;
|
377
377
|
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an intalled integration) */
|
378
378
|
connectorType: string;
|
379
|
-
/** @description Base resource URL of the data
|
379
|
+
/** @description Base resource URL of the data connection. No trailing slash. */
|
380
380
|
baseUrl: string;
|
381
|
-
/** @description HTTP headers to pass with requests to the data
|
381
|
+
/** @description HTTP headers to pass with requests to the data connection */
|
382
382
|
headers?: {
|
383
383
|
[key: string]: string;
|
384
384
|
};
|
385
|
-
/** @description Query String parameters to pass with requests to the data
|
385
|
+
/** @description Query String parameters to pass with requests to the data connection */
|
386
386
|
parameters?: {
|
387
387
|
[key: string]: string;
|
388
388
|
};
|
389
|
-
/** @description Variables needed to make calls to the data
|
389
|
+
/** @description Variables needed to make calls to the data connection */
|
390
390
|
variables?: {
|
391
391
|
[key: string]: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariable"];
|
392
392
|
};
|
@@ -400,11 +400,11 @@ interface external$1 {
|
|
400
400
|
* @description A specific type of data that a Data Connection can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
401
401
|
*/
|
402
402
|
DataType: {
|
403
|
-
/** @description Public ID of the data
|
403
|
+
/** @description Public ID of the data type */
|
404
404
|
id: string;
|
405
|
-
/** @description Display name of the data
|
405
|
+
/** @description Display name of the data type */
|
406
406
|
displayName: string;
|
407
|
-
/** @description Public ID of the associated data
|
407
|
+
/** @description Public ID of the associated data connection */
|
408
408
|
connectionId: string;
|
409
409
|
/**
|
410
410
|
* @description A connector-specific archetype for this data type; used to select UI as well as perform any
|
@@ -412,25 +412,26 @@ interface external$1 {
|
|
412
412
|
* no special UI or processing is required.
|
413
413
|
*/
|
414
414
|
archetype?: string;
|
415
|
+
allowedOnComponents?: string[];
|
415
416
|
/** @description Resource path, appended to the data connection's baseUrl (e.g. baseUrl = https://base.url, path = /v1/endpoint -> final URL https://base.url/v1/endpoint). Must have leading slash. */
|
416
417
|
path: string;
|
417
|
-
/** @description HTTP headers to pass with requests to the data
|
418
|
+
/** @description HTTP headers to pass with requests to the data type. Merged with headers from the data connection, overriding identical keys. */
|
418
419
|
headers?: {
|
419
420
|
[key: string]: string;
|
420
421
|
};
|
421
|
-
/** @description Query String parameters to pass with requests to the data
|
422
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data connection, overriding identical keys. */
|
422
423
|
parameters?: {
|
423
424
|
[key: string]: string;
|
424
425
|
};
|
425
|
-
/** @description Body to pass with requests to the data
|
426
|
+
/** @description Body to pass with requests to the data type (ignored unless method is POST) */
|
426
427
|
body?: string;
|
427
428
|
/**
|
428
|
-
* @description HTTP method to use with requests to the data
|
429
|
+
* @description HTTP method to use with requests to the data type.
|
429
430
|
* @default GET
|
430
431
|
* @enum {string}
|
431
432
|
*/
|
432
433
|
method: "GET" | "POST" | "HEAD";
|
433
|
-
/** @description Variables needed to make calls to the data
|
434
|
+
/** @description Variables needed to make calls to the data type. Merged with variables from the data connection, overriding identical keys. */
|
434
435
|
variables?: {
|
435
436
|
[key: string]: external$1["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariable"];
|
436
437
|
};
|
@@ -564,11 +565,11 @@ interface components$1 {
|
|
564
565
|
roleId: components$1["schemas"]["PublicIdProperty"];
|
565
566
|
/**
|
566
567
|
* @description Permission type for this permission ComponentDefinition:
|
567
|
-
* read | write | delete
|
568
|
+
* read | write | create | delete
|
568
569
|
*
|
569
570
|
* @enum {string}
|
570
571
|
*/
|
571
|
-
permission: "read" | "write" | "delete";
|
572
|
+
permission: "read" | "write" | "create" | "delete";
|
572
573
|
/** @description State of the component that this permission applies to */
|
573
574
|
state: number;
|
574
575
|
};
|
@@ -720,23 +721,23 @@ interface components$1 {
|
|
720
721
|
* @description An instance of an integration data connector (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset"). These are created in the UI and shared across a whole project.
|
721
722
|
*/
|
722
723
|
DataConnection: {
|
723
|
-
/** @description Public ID of the data
|
724
|
+
/** @description Public ID of the data connection */
|
724
725
|
id: string;
|
725
|
-
/** @description Display name of the data
|
726
|
+
/** @description Display name of the data connection */
|
726
727
|
displayName: string;
|
727
728
|
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an intalled integration) */
|
728
729
|
connectorType: string;
|
729
|
-
/** @description Base resource URL of the data
|
730
|
+
/** @description Base resource URL of the data connection. No trailing slash. */
|
730
731
|
baseUrl: string;
|
731
|
-
/** @description HTTP headers to pass with requests to the data
|
732
|
+
/** @description HTTP headers to pass with requests to the data connection */
|
732
733
|
headers?: {
|
733
734
|
[key: string]: string;
|
734
735
|
};
|
735
|
-
/** @description Query String parameters to pass with requests to the data
|
736
|
+
/** @description Query String parameters to pass with requests to the data connection */
|
736
737
|
parameters?: {
|
737
738
|
[key: string]: string;
|
738
739
|
};
|
739
|
-
/** @description Variables needed to make calls to the data
|
740
|
+
/** @description Variables needed to make calls to the data connection */
|
740
741
|
variables?: {
|
741
742
|
[key: string]: components$1["schemas"]["DataVariable"];
|
742
743
|
};
|
@@ -750,11 +751,11 @@ interface components$1 {
|
|
750
751
|
* @description A specific type of data that a Data Connection can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
751
752
|
*/
|
752
753
|
DataType: {
|
753
|
-
/** @description Public ID of the data
|
754
|
+
/** @description Public ID of the data type */
|
754
755
|
id: string;
|
755
|
-
/** @description Display name of the data
|
756
|
+
/** @description Display name of the data type */
|
756
757
|
displayName: string;
|
757
|
-
/** @description Public ID of the associated data
|
758
|
+
/** @description Public ID of the associated data connection */
|
758
759
|
connectionId: string;
|
759
760
|
/**
|
760
761
|
* @description A connector-specific archetype for this data type; used to select UI as well as perform any
|
@@ -762,25 +763,26 @@ interface components$1 {
|
|
762
763
|
* no special UI or processing is required.
|
763
764
|
*/
|
764
765
|
archetype?: string;
|
766
|
+
allowedOnComponents?: string[];
|
765
767
|
/** @description Resource path, appended to the data connection's baseUrl (e.g. baseUrl = https://base.url, path = /v1/endpoint -> final URL https://base.url/v1/endpoint). Must have leading slash. */
|
766
768
|
path: string;
|
767
|
-
/** @description HTTP headers to pass with requests to the data
|
769
|
+
/** @description HTTP headers to pass with requests to the data type. Merged with headers from the data connection, overriding identical keys. */
|
768
770
|
headers?: {
|
769
771
|
[key: string]: string;
|
770
772
|
};
|
771
|
-
/** @description Query String parameters to pass with requests to the data
|
773
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data connection, overriding identical keys. */
|
772
774
|
parameters?: {
|
773
775
|
[key: string]: string;
|
774
776
|
};
|
775
|
-
/** @description Body to pass with requests to the data
|
777
|
+
/** @description Body to pass with requests to the data type (ignored unless method is POST) */
|
776
778
|
body?: string;
|
777
779
|
/**
|
778
|
-
* @description HTTP method to use with requests to the data
|
780
|
+
* @description HTTP method to use with requests to the data type.
|
779
781
|
* @default GET
|
780
782
|
* @enum {string}
|
781
783
|
*/
|
782
784
|
method: "GET" | "POST" | "HEAD";
|
783
|
-
/** @description Variables needed to make calls to the data
|
785
|
+
/** @description Variables needed to make calls to the data type. Merged with variables from the data connection, overriding identical keys. */
|
784
786
|
variables?: {
|
785
787
|
[key: string]: components$1["schemas"]["DataVariable"];
|
786
788
|
};
|
@@ -1192,11 +1194,11 @@ interface external {
|
|
1192
1194
|
roleId: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["PublicIdProperty"];
|
1193
1195
|
/**
|
1194
1196
|
* @description Permission type for this permission ComponentDefinition:
|
1195
|
-
* read | write | delete
|
1197
|
+
* read | write | create | delete
|
1196
1198
|
*
|
1197
1199
|
* @enum {string}
|
1198
1200
|
*/
|
1199
|
-
permission: "read" | "write" | "delete";
|
1201
|
+
permission: "read" | "write" | "create" | "delete";
|
1200
1202
|
/** @description State of the component that this permission applies to */
|
1201
1203
|
state: number;
|
1202
1204
|
};
|
@@ -1348,23 +1350,23 @@ interface external {
|
|
1348
1350
|
* @description An instance of an integration data connector (i.e. "Master environment of the stable space", "Yelp API", "Sanity dev dataset"). These are created in the UI and shared across a whole project.
|
1349
1351
|
*/
|
1350
1352
|
DataConnection: {
|
1351
|
-
/** @description Public ID of the data
|
1353
|
+
/** @description Public ID of the data connection */
|
1352
1354
|
id: string;
|
1353
|
-
/** @description Display name of the data
|
1355
|
+
/** @description Display name of the data connection */
|
1354
1356
|
displayName: string;
|
1355
1357
|
/** @description The type of data connector this connects to (e.g. 'cms-items', provided by an intalled integration) */
|
1356
1358
|
connectorType: string;
|
1357
|
-
/** @description Base resource URL of the data
|
1359
|
+
/** @description Base resource URL of the data connection. No trailing slash. */
|
1358
1360
|
baseUrl: string;
|
1359
|
-
/** @description HTTP headers to pass with requests to the data
|
1361
|
+
/** @description HTTP headers to pass with requests to the data connection */
|
1360
1362
|
headers?: {
|
1361
1363
|
[key: string]: string;
|
1362
1364
|
};
|
1363
|
-
/** @description Query String parameters to pass with requests to the data
|
1365
|
+
/** @description Query String parameters to pass with requests to the data connection */
|
1364
1366
|
parameters?: {
|
1365
1367
|
[key: string]: string;
|
1366
1368
|
};
|
1367
|
-
/** @description Variables needed to make calls to the data
|
1369
|
+
/** @description Variables needed to make calls to the data connection */
|
1368
1370
|
variables?: {
|
1369
1371
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariable"];
|
1370
1372
|
};
|
@@ -1378,11 +1380,11 @@ interface external {
|
|
1378
1380
|
* @description A specific type of data that a Data Connection can provide (i.e. "Recipe", "Recipes List by Tag", "Yelp Reviews of My Restaurant"). These are created in the UI and shared a whole project.
|
1379
1381
|
*/
|
1380
1382
|
DataType: {
|
1381
|
-
/** @description Public ID of the data
|
1383
|
+
/** @description Public ID of the data type */
|
1382
1384
|
id: string;
|
1383
|
-
/** @description Display name of the data
|
1385
|
+
/** @description Display name of the data type */
|
1384
1386
|
displayName: string;
|
1385
|
-
/** @description Public ID of the associated data
|
1387
|
+
/** @description Public ID of the associated data connection */
|
1386
1388
|
connectionId: string;
|
1387
1389
|
/**
|
1388
1390
|
* @description A connector-specific archetype for this data type; used to select UI as well as perform any
|
@@ -1390,25 +1392,26 @@ interface external {
|
|
1390
1392
|
* no special UI or processing is required.
|
1391
1393
|
*/
|
1392
1394
|
archetype?: string;
|
1395
|
+
allowedOnComponents?: string[];
|
1393
1396
|
/** @description Resource path, appended to the data connection's baseUrl (e.g. baseUrl = https://base.url, path = /v1/endpoint -> final URL https://base.url/v1/endpoint). Must have leading slash. */
|
1394
1397
|
path: string;
|
1395
|
-
/** @description HTTP headers to pass with requests to the data
|
1398
|
+
/** @description HTTP headers to pass with requests to the data type. Merged with headers from the data connection, overriding identical keys. */
|
1396
1399
|
headers?: {
|
1397
1400
|
[key: string]: string;
|
1398
1401
|
};
|
1399
|
-
/** @description Query String parameters to pass with requests to the data
|
1402
|
+
/** @description Query String parameters to pass with requests to the data type. Merged with parameters from the data connection, overriding identical keys. */
|
1400
1403
|
parameters?: {
|
1401
1404
|
[key: string]: string;
|
1402
1405
|
};
|
1403
|
-
/** @description Body to pass with requests to the data
|
1406
|
+
/** @description Body to pass with requests to the data type (ignored unless method is POST) */
|
1404
1407
|
body?: string;
|
1405
1408
|
/**
|
1406
|
-
* @description HTTP method to use with requests to the data
|
1409
|
+
* @description HTTP method to use with requests to the data type.
|
1407
1410
|
* @default GET
|
1408
1411
|
* @enum {string}
|
1409
1412
|
*/
|
1410
1413
|
method: "GET" | "POST" | "HEAD";
|
1411
|
-
/** @description Variables needed to make calls to the data
|
1414
|
+
/** @description Variables needed to make calls to the data type. Merged with variables from the data connection, overriding identical keys. */
|
1412
1415
|
variables?: {
|
1413
1416
|
[key: string]: external["uniform-canvas-types.swagger.yml"]["components"]["schemas"]["DataVariable"];
|
1414
1417
|
};
|
@@ -1546,4 +1549,4 @@ declare global {
|
|
1546
1549
|
*/
|
1547
1550
|
declare function createEventBus(): Promise<PreviewEventBus | undefined>;
|
1548
1551
|
|
1549
|
-
export { CompositionListAPIResponse as A, CompositionAPIOptions as B, ComponentInstance as C, ComponentParameterBinding as D, CompositionDataVariables as E, CompositionDataDefinitions as F, CompositionDataDefinition as G, CanvasDefinitions as H, ChannelSubscription as I, createEventBus as J, PreviewEventBus as P, RootComponentInstance as R, ComponentParameter as a, CompositionGetParameters as b, components$1 as c, CompositionPutParameters as d, CompositionDeleteParameters as e, ComponentDefinitionGetParameters as f, ComponentDefinitionPutParameters as g, ComponentDefinitionDeleteParameters as h,
|
1552
|
+
export { CompositionListAPIResponse as A, CompositionAPIOptions as B, ComponentInstance as C, ComponentParameterBinding as D, CompositionDataVariables as E, CompositionDataDefinitions as F, CompositionDataDefinition as G, CanvasDefinitions as H, ChannelSubscription as I, createEventBus as J, PreviewEventBus as P, RootComponentInstance as R, ComponentParameter as a, CompositionGetParameters as b, components$1 as c, CompositionPutParameters as d, CompositionDeleteParameters as e, ComponentDefinitionGetParameters as f, ComponentDefinitionPutParameters as g, ComponentDefinitionDeleteParameters as h, CompositionGetResponse as i, ComponentDefinitionGetResponse as j, ComponentDefinitionAPIResponse as k, ComponentDefinitionAPIPutRequest as l, ComponentDefinitionAPIDeleteRequest as m, ComponentDefinitionListAPIOptions as n, ComponentDefinitionParameter as o, ComponentDefinitionVariant as p, ComponentDefinitionSlugSettings as q, ComponentDefinitionSlot as r, ComponentDefinitionPermission as s, ComponentDefinition as t, CreatingComponentDefinition as u, CompositionGetOrderBy as v, CompositionUIStatus as w, CompositionGetListResponse as x, CompositionAPIResponse as y, CompositionAPIDeleteRequest as z };
|