@uniformdev/canvas 18.22.0 → 18.23.1-alpha.26

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +86 -0
  2. package/package.json +11 -13
package/dist/index.d.ts CHANGED
@@ -30,9 +30,21 @@ interface components$2 {
30
30
  allowedComponents: string[];
31
31
  /**
32
32
  * @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
33
+ * If allowAllComponents is true, this value is ignored.
34
+ *
33
35
  * @default false
34
36
  */
35
37
  inheritAllowedComponents: boolean;
38
+ /**
39
+ * @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
40
+ * When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
41
+ */
42
+ allowAllComponents?: boolean;
43
+ /**
44
+ * @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
45
+ * When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
46
+ */
47
+ patternsInAllowedComponents?: boolean;
36
48
  /** @description Minimum valid number of components in this slot */
37
49
  minComponents?: number;
38
50
  /** @description Maximum valid number of components in this slot */
@@ -610,9 +622,21 @@ interface external$5 {
610
622
  allowedComponents: string[];
611
623
  /**
612
624
  * @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
625
+ * If allowAllComponents is true, this value is ignored.
626
+ *
613
627
  * @default false
614
628
  */
615
629
  inheritAllowedComponents: boolean;
630
+ /**
631
+ * @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
632
+ * When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
633
+ */
634
+ allowAllComponents?: boolean;
635
+ /**
636
+ * @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
637
+ * When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
638
+ */
639
+ patternsInAllowedComponents?: boolean;
616
640
  /** @description Minimum valid number of components in this slot */
617
641
  minComponents?: number;
618
642
  /** @description Maximum valid number of components in this slot */
@@ -1444,9 +1468,21 @@ interface external$4 {
1444
1468
  allowedComponents: string[];
1445
1469
  /**
1446
1470
  * @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
1471
+ * If allowAllComponents is true, this value is ignored.
1472
+ *
1447
1473
  * @default false
1448
1474
  */
1449
1475
  inheritAllowedComponents: boolean;
1476
+ /**
1477
+ * @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
1478
+ * When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
1479
+ */
1480
+ allowAllComponents?: boolean;
1481
+ /**
1482
+ * @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
1483
+ * When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
1484
+ */
1485
+ patternsInAllowedComponents?: boolean;
1450
1486
  /** @description Minimum valid number of components in this slot */
1451
1487
  minComponents?: number;
1452
1488
  /** @description Maximum valid number of components in this slot */
@@ -2050,9 +2086,21 @@ interface external$3 {
2050
2086
  allowedComponents: string[];
2051
2087
  /**
2052
2088
  * @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
2089
+ * If allowAllComponents is true, this value is ignored.
2090
+ *
2053
2091
  * @default false
2054
2092
  */
2055
2093
  inheritAllowedComponents: boolean;
2094
+ /**
2095
+ * @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
2096
+ * When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
2097
+ */
2098
+ allowAllComponents?: boolean;
2099
+ /**
2100
+ * @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
2101
+ * When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
2102
+ */
2103
+ patternsInAllowedComponents?: boolean;
2056
2104
  /** @description Minimum valid number of components in this slot */
2057
2105
  minComponents?: number;
2058
2106
  /** @description Maximum valid number of components in this slot */
@@ -3126,6 +3174,8 @@ declare class CanvasClient extends ApiClient<CanvasClientOptions> {
3126
3174
  name: string;
3127
3175
  allowedComponents: string[]; /** Deletes a Canvas component definition */
3128
3176
  inheritAllowedComponents: boolean;
3177
+ allowAllComponents?: boolean | undefined;
3178
+ patternsInAllowedComponents?: boolean | undefined; /** Deletes a Canvas component definition */
3129
3179
  minComponents?: number | undefined;
3130
3180
  maxComponents?: number | undefined;
3131
3181
  }[] | undefined;
@@ -3360,9 +3410,21 @@ interface external$2 {
3360
3410
  allowedComponents: string[];
3361
3411
  /**
3362
3412
  * @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
3413
+ * If allowAllComponents is true, this value is ignored.
3414
+ *
3363
3415
  * @default false
3364
3416
  */
3365
3417
  inheritAllowedComponents: boolean;
3418
+ /**
3419
+ * @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
3420
+ * When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
3421
+ */
3422
+ allowAllComponents?: boolean;
3423
+ /**
3424
+ * @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
3425
+ * When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
3426
+ */
3427
+ patternsInAllowedComponents?: boolean;
3366
3428
  /** @description Minimum valid number of components in this slot */
3367
3429
  minComponents?: number;
3368
3430
  /** @description Maximum valid number of components in this slot */
@@ -3882,9 +3944,21 @@ interface external$1 {
3882
3944
  allowedComponents: string[];
3883
3945
  /**
3884
3946
  * @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
3947
+ * If allowAllComponents is true, this value is ignored.
3948
+ *
3885
3949
  * @default false
3886
3950
  */
3887
3951
  inheritAllowedComponents: boolean;
3952
+ /**
3953
+ * @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
3954
+ * When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
3955
+ */
3956
+ allowAllComponents?: boolean;
3957
+ /**
3958
+ * @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
3959
+ * When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
3960
+ */
3961
+ patternsInAllowedComponents?: boolean;
3888
3962
  /** @description Minimum valid number of components in this slot */
3889
3963
  minComponents?: number;
3890
3964
  /** @description Maximum valid number of components in this slot */
@@ -4439,9 +4513,21 @@ interface external {
4439
4513
  allowedComponents: string[];
4440
4514
  /**
4441
4515
  * @description Whether this slot inherits its allowed components from the parent slot it lives in. If true, allowedComponents is irrelevant.
4516
+ * If allowAllComponents is true, this value is ignored.
4517
+ *
4442
4518
  * @default false
4443
4519
  */
4444
4520
  inheritAllowedComponents: boolean;
4521
+ /**
4522
+ * @description When false or not defined, only components in allowedComponents may be added to this slot - and if allowedComponents is empty, nothing can be added.
4523
+ * When true, every component and pattern that is defined may be added to this slot regardless of any other setting including inheritAllowedComponents.
4524
+ */
4525
+ allowAllComponents?: boolean;
4526
+ /**
4527
+ * @description When not defined, or false: all patterns for components listed in allowedComponents are automatically allowed in the slot.
4528
+ * When true: patterns for components listed in allowedComponents are not allowed in the slot unless explicitly added to allowedComponents as `$p:<patternid>`
4529
+ */
4530
+ patternsInAllowedComponents?: boolean;
4445
4531
  /** @description Minimum valid number of components in this slot */
4446
4532
  minComponents?: number;
4447
4533
  /** @description Maximum valid number of components in this slot */
package/package.json CHANGED
@@ -1,21 +1,19 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "18.22.0",
3
+ "version": "18.23.1-alpha.26+668a4ae9d",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.esm.js",
8
8
  "exports": {
9
- ".": {
10
- "import": {
11
- "types": "./dist/index.d.ts",
12
- "node": "./dist/index.mjs",
13
- "default": "./dist/index.esm.js"
14
- },
15
- "require": {
16
- "types": "./dist/index.d.ts",
17
- "default": "./dist/index.js"
18
- }
9
+ "import": {
10
+ "types": "./dist/index.d.ts",
11
+ "node": "./dist/index.mjs",
12
+ "default": "./dist/index.esm.js"
13
+ },
14
+ "require": {
15
+ "types": "./dist/index.d.ts",
16
+ "default": "./dist/index.js"
19
17
  }
20
18
  },
21
19
  "types": "./dist/index.d.ts",
@@ -49,7 +47,7 @@
49
47
  "pusher-js": "8.0.1"
50
48
  },
51
49
  "dependencies": {
52
- "@uniformdev/context": "18.22.0"
50
+ "@uniformdev/context": "18.23.1-alpha.26+668a4ae9d"
53
51
  },
54
52
  "files": [
55
53
  "/dist"
@@ -57,5 +55,5 @@
57
55
  "publishConfig": {
58
56
  "access": "public"
59
57
  },
60
- "gitHead": "55125ebbd2e43c65946984dbd1cea417e089f75d"
58
+ "gitHead": "668a4ae9d1d3a85ac601091d435e4abee736441f"
61
59
  }