@heuteapp/models 0.1.0 → 0.1.1
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.
- package/dist/board.d.ts +4 -0
- package/dist/board.js +2 -0
- package/dist/boardField.d.ts +8 -0
- package/dist/boardField.js +7 -0
- package/dist/boardGrid.d.ts +3 -0
- package/dist/boardGrid.js +2 -0
- package/dist/boardLayout.d.ts +6 -0
- package/dist/boardLayout.js +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +7 -0
- package/package.json +7 -3
package/dist/board.d.ts
ADDED
package/dist/board.js
ADDED
|
@@ -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,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;
|
package/dist/index.d.ts
ADDED
|
@@ -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,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@heuteapp/models",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
8
|
+
"prepublishOnly": "tsc"
|
|
8
9
|
},
|
|
9
10
|
"keywords": [],
|
|
10
11
|
"author": "k4yr2",
|
|
11
12
|
"license": "MIT",
|
|
12
|
-
"type": "commonjs"
|
|
13
|
+
"type": "commonjs",
|
|
14
|
+
"dependencies": {
|
|
15
|
+
"@heuteapp/common": "^0.1.2"
|
|
16
|
+
}
|
|
13
17
|
}
|