@win2win/shared 1.0.40 → 1.0.42

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.
@@ -22,11 +22,17 @@ export interface LayoutSection {
22
22
  styles: LayoutStyle;
23
23
  content: any;
24
24
  }
25
+ export declare enum TextLineType {
26
+ TITLE = "title",
27
+ SUBTITLE = "subtitle",
28
+ PARAGRAPH = "paragraph"
29
+ }
30
+ export interface TextLine {
31
+ type: TextLineType;
32
+ text: string;
33
+ }
25
34
  export interface TextContent {
26
- lines: {
27
- type: 'title' | 'subtitle' | 'paragraph';
28
- text: string;
29
- }[];
35
+ lines: TextLine[];
30
36
  }
31
37
  export interface LayoutSectionText extends LayoutSection {
32
38
  type: LayoutSectionType.TEXT;
@@ -49,7 +55,10 @@ export interface LayoutSectionCardsGrid extends LayoutSection {
49
55
  }
50
56
  export interface ImageContent {
51
57
  src: string;
52
- alt: string;
58
+ alt?: string;
59
+ align?: 'left' | 'center' | 'right';
60
+ width?: string;
61
+ height?: string;
53
62
  }
54
63
  export interface LayoutSectionImage extends LayoutSection {
55
64
  type: LayoutSectionType.IMAGE;
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LAYOUT_SECTION_TYPES = exports.LayoutSectionType = void 0;
3
+ exports.LAYOUT_SECTION_TYPES = exports.LayoutSectionType = exports.TextLineType = void 0;
4
+ var TextLineType;
5
+ (function (TextLineType) {
6
+ TextLineType["TITLE"] = "title";
7
+ TextLineType["SUBTITLE"] = "subtitle";
8
+ TextLineType["PARAGRAPH"] = "paragraph";
9
+ })(TextLineType || (exports.TextLineType = TextLineType = {}));
4
10
  var LayoutSectionType;
5
11
  (function (LayoutSectionType) {
6
12
  LayoutSectionType["TEXT"] = "text";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",