@win2win/shared 1.0.27 → 1.0.29

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.
@@ -1,5 +1,11 @@
1
- export declare const LAYOUT_SECTION_TYPES: readonly ["text", "table", "cards-grid"];
2
- export type LayoutSectionType = typeof LAYOUT_SECTION_TYPES[number];
1
+ export declare enum LayoutSectionTypeEnum {
2
+ TEXT = "text",
3
+ TABLE = "table",
4
+ CARDS_GRID = "cards-grid",
5
+ IMAGE = "image"
6
+ }
7
+ export declare const LAYOUT_SECTION_TYPES: readonly [LayoutSectionTypeEnum.TEXT, LayoutSectionTypeEnum.CARDS_GRID, LayoutSectionTypeEnum.TABLE, LayoutSectionTypeEnum.IMAGE];
8
+ export type LayoutSectionType = LayoutSectionTypeEnum.TEXT | LayoutSectionTypeEnum.TABLE | LayoutSectionTypeEnum.CARDS_GRID | LayoutSectionTypeEnum.IMAGE;
3
9
  export interface TableColumn {
4
10
  header: string;
5
11
  key: string;
@@ -9,7 +9,7 @@
9
9
  // format: {},
10
10
  // }
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LAYOUT_SECTION_TYPES = void 0;
12
+ exports.LAYOUT_SECTION_TYPES = exports.LayoutSectionTypeEnum = void 0;
13
13
  // export interface LayoutSection {
14
14
  // idDocLaySection: string,
15
15
  // idDocumentLayout: String;
@@ -30,4 +30,11 @@ exports.LAYOUT_SECTION_TYPES = void 0;
30
30
  // type: 'cards-grid';
31
31
  // content: { cards: CardsGridSectionCard[] };
32
32
  // }
33
- exports.LAYOUT_SECTION_TYPES = ['text', 'table', 'cards-grid'];
33
+ var LayoutSectionTypeEnum;
34
+ (function (LayoutSectionTypeEnum) {
35
+ LayoutSectionTypeEnum["TEXT"] = "text";
36
+ LayoutSectionTypeEnum["TABLE"] = "table";
37
+ LayoutSectionTypeEnum["CARDS_GRID"] = "cards-grid";
38
+ LayoutSectionTypeEnum["IMAGE"] = "image";
39
+ })(LayoutSectionTypeEnum || (exports.LayoutSectionTypeEnum = LayoutSectionTypeEnum = {}));
40
+ exports.LAYOUT_SECTION_TYPES = [LayoutSectionTypeEnum.TEXT, LayoutSectionTypeEnum.CARDS_GRID, LayoutSectionTypeEnum.TABLE, LayoutSectionTypeEnum.IMAGE];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.27",
3
+ "version": "1.0.29",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",