@heuteapp/models 0.1.0 → 0.1.2

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.
@@ -0,0 +1,4 @@
1
+ import { BoardLayoutModel } from "./boardLayout";
2
+ export interface BoardModel {
3
+ layout: BoardLayoutModel;
4
+ }
package/dist/board.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { UniqueData, Bounds, Placement, DataProps } from "@heuteapp/common";
2
+ import { BoardGridModel } from "./boardGrid";
3
+ export interface BoardFieldModel extends UniqueData {
4
+ grid: BoardGridModel;
5
+ bounds: Bounds;
6
+ placement?: Placement;
7
+ }
8
+ export declare function boardField(id: string, props: DataProps<BoardFieldModel>): BoardFieldModel;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.boardField = boardField;
4
+ const common_1 = require("@heuteapp/common");
5
+ function boardField(id, props) {
6
+ return (0, common_1.createDataWithId)(id, props);
7
+ }
@@ -0,0 +1,3 @@
1
+ import { GridSize } from "@heuteapp/common";
2
+ export interface BoardGridModel extends GridSize {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { DataProps, UniqueData } from "@heuteapp/common";
2
+ import { BoardFieldModel } from "./boardField";
3
+ export interface BoardLayoutModel extends UniqueData {
4
+ fields: BoardFieldModel[];
5
+ }
6
+ export declare function boardLayout(id: string, props: DataProps<BoardLayoutModel>): BoardLayoutModel;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.boardLayout = boardLayout;
4
+ const common_1 = require("@heuteapp/common");
5
+ function boardLayout(id, props) {
6
+ return (0, common_1.createDataWithId)(id, props);
7
+ }
@@ -0,0 +1,6 @@
1
+ export type { BoardModel } from "./board";
2
+ export type { BoardFieldModel } from "./boardField";
3
+ export type { BoardGridModel } from "./boardGrid";
4
+ export type { BoardLayoutModel } from "./boardLayout";
5
+ export { boardField } from "./boardField";
6
+ export { boardLayout } from "./boardLayout";
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.boardLayout = exports.boardField = void 0;
4
+ var boardField_1 = require("./boardField");
5
+ Object.defineProperty(exports, "boardField", { enumerable: true, get: function () { return boardField_1.boardField; } });
6
+ var boardLayout_1 = require("./boardLayout");
7
+ Object.defineProperty(exports, "boardLayout", { enumerable: true, get: function () { return boardLayout_1.boardLayout; } });
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@heuteapp/models",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1"
7
+ "prepublishOnly": "tsc"
8
8
  },
9
9
  "keywords": [],
10
10
  "author": "k4yr2",
11
11
  "license": "MIT",
12
- "type": "commonjs"
12
+ "type": "commonjs",
13
+ "dependencies": {
14
+ "@heuteapp/common": "^0.1.3"
15
+ }
13
16
  }