@win2win/shared 1.0.41 → 1.0.43

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;
@@ -93,6 +99,7 @@ export interface LayoutStyle {
93
99
  margins?: number[];
94
100
  background?: string;
95
101
  typography?: string;
102
+ cssRaw?: string;
96
103
  [key: string]: any;
97
104
  }
98
105
  export interface LayoutData {
@@ -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.41",
3
+ "version": "1.0.43",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",