@mediaclip/library 12.2.0 → 12.3.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.
@@ -6,4 +6,5 @@ export interface AddClipartElementArgument extends AddVisualElementArgumentBase
6
6
  colorizeSpotColor?: string;
7
7
  printFinishing?: string;
8
8
  effect?: ElementGradientEffect;
9
+ behavior?: string;
9
10
  }
@@ -11,8 +11,10 @@ export interface AddStaticTextElementArgument extends AddVisualElementArgumentBa
11
11
  fontFamily?: string;
12
12
  fontSize?: number;
13
13
  color?: string;
14
+ tracking?: number;
14
15
  spotColor?: string;
15
16
  background?: ElementBackground;
16
17
  maxFontSize?: number;
17
18
  border?: ElementStraightBorder | ElementFrameBorder;
19
+ singleLine?: boolean;
18
20
  }
@@ -19,9 +19,12 @@ export interface AddTextElementArgument extends AddVisualElementArgumentBase {
19
19
  fontFamily?: string;
20
20
  fontSize?: number;
21
21
  color?: string;
22
+ tracking?: number;
22
23
  spotColor?: string;
23
24
  printFinishing?: string;
24
25
  background?: ElementBackground;
25
26
  border?: ElementStraightBorder | ElementFrameBorder;
26
27
  effect?: TextStrokeEffect | TextEmbossingEffect | TextGradientEffect;
28
+ singleLine?: boolean;
29
+ placeholder?: string;
27
30
  }
@@ -0,0 +1 @@
1
+ export type AddressFormatterFields = 'firstName' | 'lastName' | 'recipient' | 'line1' | 'line2' | 'city' | 'zipCode' | 'state' | 'postalBox' | 'country';
@@ -8,6 +8,7 @@ export interface ClipartElement extends VisualElement {
8
8
  colorize?: string;
9
9
  colorizeSpotColor?: string;
10
10
  printFinishing?: string;
11
+ behavior?: string;
11
12
  setEffect(value: ElementEffect): void;
12
13
  }
13
14
  export {};
@@ -0,0 +1 @@
1
+ export type RawFormatterFields = 'value';
@@ -14,9 +14,11 @@ export interface StaticTextElement extends VisualElement {
14
14
  fontFamily: string;
15
15
  fontSize: number;
16
16
  color: string;
17
+ tracking: number;
17
18
  spotColor?: string;
18
19
  background?: ElementBackground;
19
20
  maxFontSize: number;
21
+ singleLine: boolean;
20
22
  readonly border?: ElementFrameBorder | ElementStraightBorder;
21
23
  setBorder(value: ElementStraightBorder | ElementFrameBorder): void;
22
24
  }
@@ -3,7 +3,10 @@ import { ElementFrameBorder, ElementStraightBorder } from "./ElementBorder";
3
3
  import { HAlign } from "./HAlign";
4
4
  import { TextEmbossingEffect, TextGradientEffect, TextStrokeEffect } from "./TextEffect";
5
5
  import { TextElementMode } from "./TextElementMode";
6
+ import { TextFormatterArgument } from "./TextFormatterArgument";
7
+ import { TextFormatterField } from "./TextFormatterField";
6
8
  import { VAlign } from "./VAlign";
9
+ import { VdpFormatterMap } from "./VdpFormatterMap";
7
10
  import { VisualElement } from "./VisualElement";
8
11
  type TextBorder = ElementStraightBorder | ElementFrameBorder;
9
12
  type TextEffect = TextStrokeEffect | TextEmbossingEffect | TextGradientEffect;
@@ -25,12 +28,19 @@ export interface TextElement extends VisualElement {
25
28
  fontFamily: string;
26
29
  fontSize: number;
27
30
  color: string;
31
+ tracking: number;
28
32
  spotColor?: string;
29
33
  background?: ElementBackground;
30
34
  printFinishing?: string;
35
+ singleLine: boolean;
36
+ formatter?: string;
37
+ placeholder?: string;
38
+ readonly fields?: TextFormatterField[];
39
+ readonly vdpFormatterMap?: VdpFormatterMap[];
31
40
  readonly border?: TextBorder;
32
41
  setBorder(value: TextBorder): void;
33
42
  setEffect(value: TextEffect): void;
43
+ setFormatter(value: TextFormatterArgument): void;
34
44
  computeLineBreaks(): void;
35
45
  }
36
46
  export {};
@@ -0,0 +1,7 @@
1
+ import { TextFormatterField } from "./TextFormatterField";
2
+ import { VdpFormatterMap } from "./VdpFormatterMap";
3
+ export interface TextFormatterArgument {
4
+ formatter: string;
5
+ fields?: TextFormatterField[];
6
+ vdpFormatterMap?: VdpFormatterMap[];
7
+ }
@@ -0,0 +1,6 @@
1
+ import { AddressFormatterFields } from "./AddressFormatterFields";
2
+ import { RawFormatterFields } from "./RawFormatterFields";
3
+ export interface TextFormatterField {
4
+ formatterField: AddressFormatterFields | RawFormatterFields;
5
+ value?: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { AddressFormatterFields } from "./AddressFormatterFields";
2
+ import { RawFormatterFields } from "./RawFormatterFields";
3
+ export interface VdpFormatterMap {
4
+ formatterField: AddressFormatterFields | RawFormatterFields;
5
+ vdpField: string;
6
+ }
@@ -1,3 +1,4 @@
1
+ export * from "./AddressFormatterFields";
1
2
  export * from "./BackgroundElement";
2
3
  export * from "./ClipartElement";
3
4
  export * from "./ElementBackground";
@@ -7,6 +8,7 @@ export * from "./GeneratedImageElement";
7
8
  export * from "./HAlign";
8
9
  export * from "./PhotoElement";
9
10
  export * from "./PhotoFitting";
11
+ export * from "./RawFormatterFields";
10
12
  export * from "./ShapeElement";
11
13
  export * from "./StaticImageElement";
12
14
  export * from "./StaticTextElement";
@@ -14,3 +16,5 @@ export * from "./TextElement";
14
16
  export * from "./TextElementMode";
15
17
  export * from "./VAlign";
16
18
  export * from "./VisualElement";
19
+ export * from "./TextFormatterArgument";
20
+ export * from "./VdpFormatterMap";
@@ -33,19 +33,24 @@ interface TextStyleArgument {
33
33
  fontSize?: number;
34
34
  maxFontSize?: number;
35
35
  color?: string;
36
+ tracking?: number;
36
37
  spotColor?: string;
37
38
  background?: ElementBackground;
38
39
  border?: ElementStraightBorder | ElementFrameBorder;
39
40
  effect?: TextStrokeEffect | TextEmbossingEffect | TextGradientEffect;
40
41
  mode?: TextElementMode;
41
42
  computeTextHeight?: boolean;
43
+ behavior?: string;
44
+ singleLine?: boolean;
45
+ placeholder?: string;
42
46
  }
43
47
  interface ClipartStyleArgument {
44
- tag?: string;
48
+ tag: string;
45
49
  id: string;
46
50
  colorize?: string;
47
51
  colorizeSpotColor?: string;
48
52
  effect?: ElementGradientEffect;
53
+ behavior?: string;
49
54
  }
50
55
  interface PhotoStyleArgument {
51
56
  tag?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediaclip/library",
3
- "version": "12.2.0",
3
+ "version": "12.3.0",
4
4
  "description": "",
5
5
  "types": "dist/index.d.ts",
6
6
  "keywords": [],
@@ -18,9 +18,9 @@
18
18
  "prepublish": "tsc"
19
19
  },
20
20
  "devDependencies": {
21
- "@typescript-eslint/eslint-plugin": "^5.48.2",
22
- "@typescript-eslint/parser": "^5.48.2",
23
- "eslint": "^8.32.0",
24
- "typescript": "^4.9.4"
21
+ "@typescript-eslint/eslint-plugin": "^5.62.0",
22
+ "@typescript-eslint/parser": "^5.62.0",
23
+ "eslint": "^8.57.0",
24
+ "typescript": "^4.9.5"
25
25
  }
26
26
  }