@uniformdev/canvas 20.25.2-alpha.0 → 20.26.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/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ApiClient, ExceptProject, ClientOptions, ApiClientError } from '@uniformdev/context/api';
2
2
  export { ApiClientError } from '@uniformdev/context/api';
3
- import { AssetGetResponseSingle, AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
3
+ import { AssetGetResponseSingle, AssetDefinitionType, AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
4
4
  export { AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
5
5
  import { Quirks, StorageCommands, PersonalizedVariant, VariationMatchMetadata, TestVariant } from '@uniformdev/context';
6
6
  import { Options as Options$1 } from 'p-retry';
7
7
  import { Options } from 'p-throttle';
8
- import { RichTextBuiltInFormat as RichTextBuiltInFormat$1, RichTextBuiltInElement as RichTextBuiltInElement$1, RichTextParamConfiguration as RichTextParamConfiguration$1, ParameterRichTextValue } from '@uniformdev/richtext';
8
+ import { RichTextBuiltInFormat as RichTextBuiltInFormat$1, RichTextBuiltInElement as RichTextBuiltInElement$1, ParameterRichTextValue } from '@uniformdev/richtext';
9
9
 
10
10
  interface paths$k {
11
11
  "/api/v1/canvas-definitions": {
@@ -10105,7 +10105,20 @@ type NumberParamValue = number | string;
10105
10105
 
10106
10106
  type RichTextBuiltInFormat = RichTextBuiltInFormat$1;
10107
10107
  type RichTextBuiltInElement = RichTextBuiltInElement$1;
10108
- type RichTextParamConfiguration = RichTextParamConfiguration$1;
10108
+ type RichTextParamConfiguration = {
10109
+ required?: boolean;
10110
+ formatting?: {
10111
+ builtIn?: Array<RichTextBuiltInFormat>;
10112
+ };
10113
+ elements?: {
10114
+ builtIn?: Array<RichTextBuiltInElement>;
10115
+ };
10116
+ elementsConfig?: {
10117
+ asset?: {
10118
+ allowedTypes?: AssetDefinitionType[];
10119
+ };
10120
+ };
10121
+ };
10109
10122
  type RichTextParamValue = ParameterRichTextValue;
10110
10123
 
10111
10124
  type SelectParamOption = {
@@ -13292,7 +13305,7 @@ declare function hasReferencedVariables(value: string | undefined): number;
13292
13305
  */
13293
13306
  declare function parseVariableExpression(serialized: string, onToken?: (token: string, type: 'text' | 'variable') => void | false): number;
13294
13307
 
13295
- declare const version = "20.25.1";
13308
+ declare const version = "20.26.0";
13296
13309
 
13297
13310
  /** API client to enable managing workflow definitions */
13298
13311
  declare class WorkflowClient extends ApiClient {
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import { ApiClient, ExceptProject, ClientOptions, ApiClientError } from '@uniformdev/context/api';
2
2
  export { ApiClientError } from '@uniformdev/context/api';
3
- import { AssetGetResponseSingle, AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
3
+ import { AssetGetResponseSingle, AssetDefinitionType, AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
4
4
  export { AssetParamValue, AssetParamValueItem } from '@uniformdev/assets';
5
5
  import { Quirks, StorageCommands, PersonalizedVariant, VariationMatchMetadata, TestVariant } from '@uniformdev/context';
6
6
  import { Options as Options$1 } from 'p-retry';
7
7
  import { Options } from 'p-throttle';
8
- import { RichTextBuiltInFormat as RichTextBuiltInFormat$1, RichTextBuiltInElement as RichTextBuiltInElement$1, RichTextParamConfiguration as RichTextParamConfiguration$1, ParameterRichTextValue } from '@uniformdev/richtext';
8
+ import { RichTextBuiltInFormat as RichTextBuiltInFormat$1, RichTextBuiltInElement as RichTextBuiltInElement$1, ParameterRichTextValue } from '@uniformdev/richtext';
9
9
 
10
10
  interface paths$k {
11
11
  "/api/v1/canvas-definitions": {
@@ -10105,7 +10105,20 @@ type NumberParamValue = number | string;
10105
10105
 
10106
10106
  type RichTextBuiltInFormat = RichTextBuiltInFormat$1;
10107
10107
  type RichTextBuiltInElement = RichTextBuiltInElement$1;
10108
- type RichTextParamConfiguration = RichTextParamConfiguration$1;
10108
+ type RichTextParamConfiguration = {
10109
+ required?: boolean;
10110
+ formatting?: {
10111
+ builtIn?: Array<RichTextBuiltInFormat>;
10112
+ };
10113
+ elements?: {
10114
+ builtIn?: Array<RichTextBuiltInElement>;
10115
+ };
10116
+ elementsConfig?: {
10117
+ asset?: {
10118
+ allowedTypes?: AssetDefinitionType[];
10119
+ };
10120
+ };
10121
+ };
10109
10122
  type RichTextParamValue = ParameterRichTextValue;
10110
10123
 
10111
10124
  type SelectParamOption = {
@@ -13292,7 +13305,7 @@ declare function hasReferencedVariables(value: string | undefined): number;
13292
13305
  */
13293
13306
  declare function parseVariableExpression(serialized: string, onToken?: (token: string, type: 'text' | 'variable') => void | false): number;
13294
13307
 
13295
- declare const version = "20.25.1";
13308
+ declare const version = "20.26.0";
13296
13309
 
13297
13310
  /** API client to enable managing workflow definitions */
13298
13311
  declare class WorkflowClient extends ApiClient {
package/dist/index.esm.js CHANGED
@@ -3406,7 +3406,7 @@ function handleRichTextNodeBinding(object, options) {
3406
3406
  import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
3407
3407
 
3408
3408
  // src/.version.ts
3409
- var version = "20.25.1";
3409
+ var version = "20.26.0";
3410
3410
 
3411
3411
  // src/WorkflowClient.ts
3412
3412
  import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
package/dist/index.js CHANGED
@@ -3571,7 +3571,7 @@ function handleRichTextNodeBinding(object, options) {
3571
3571
  var import_api17 = require("@uniformdev/context/api");
3572
3572
 
3573
3573
  // src/.version.ts
3574
- var version = "20.25.1";
3574
+ var version = "20.26.0";
3575
3575
 
3576
3576
  // src/WorkflowClient.ts
3577
3577
  var import_api16 = require("@uniformdev/context/api");
package/dist/index.mjs CHANGED
@@ -3406,7 +3406,7 @@ function handleRichTextNodeBinding(object, options) {
3406
3406
  import { ApiClientError as ApiClientError2 } from "@uniformdev/context/api";
3407
3407
 
3408
3408
  // src/.version.ts
3409
- var version = "20.25.1";
3409
+ var version = "20.26.0";
3410
3410
 
3411
3411
  // src/WorkflowClient.ts
3412
3412
  import { ApiClient as ApiClient15 } from "@uniformdev/context/api";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/canvas",
3
- "version": "20.25.2-alpha.0+93d3ffc2f1",
3
+ "version": "20.26.0",
4
4
  "description": "Common functionality and types for Uniform Canvas",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -40,9 +40,9 @@
40
40
  "p-throttle": "5.0.0"
41
41
  },
42
42
  "dependencies": {
43
- "@uniformdev/assets": "20.25.2-alpha.0+93d3ffc2f1",
44
- "@uniformdev/context": "20.25.2-alpha.0+93d3ffc2f1",
45
- "@uniformdev/richtext": "20.25.2-alpha.0+93d3ffc2f1",
43
+ "@uniformdev/assets": "20.26.0",
44
+ "@uniformdev/context": "20.26.0",
45
+ "@uniformdev/richtext": "20.26.0",
46
46
  "immer": "10.1.1"
47
47
  },
48
48
  "files": [
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "93d3ffc2f1717d4ab6789d483ca7164f68a36b72"
54
+ "gitHead": "ef00de53951dbf1bc894c099aabd1252a670dee3"
55
55
  }