@educabot/educablocks-boards 0.2.35 → 0.2.36

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,5 @@
1
+ export { boards } from './src/boards/data';
2
+ export { getAllBoards, getBoards, getBoardById } from './src/boards/boards';
3
+ export type { Board, BOARD_TYPE, BOARD_ITEM_TYPE, IA_MODEL } from './src/boards/types';
4
+ export type { Pin } from './src/pins';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAA;AAC3E,YAAY,EAAE,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AACtF,YAAY,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA"}
@@ -0,0 +1,36 @@
1
+ import { Board } from './types';
2
+ type ExcludeProp = {
3
+ prop: string;
4
+ value: string;
5
+ };
6
+ type GetAllBoards = {
7
+ boards: Board[];
8
+ type?: string;
9
+ premium?: boolean;
10
+ disabled?: boolean;
11
+ hidden?: boolean;
12
+ exclude?: ExcludeProp;
13
+ include?: number[];
14
+ };
15
+ export declare const getAllBoards: ({ boards, type, premium, disabled, hidden, exclude, include, }: GetAllBoards) => Board[];
16
+ export declare const getBoardById: (boards: Board[], id: number | string) => Board | undefined;
17
+ /**
18
+ * Get all filtered boards
19
+ * legacy support
20
+ *
21
+ * @param boards all boards
22
+ * @param [type='all'] type of board
23
+ * @param [premium=true] include premium boards
24
+ * @param [disabled=true] include disabled boards
25
+ * @param [hidden=false] include hidden boards
26
+ * @param [exclude={
27
+ * prop: '',
28
+ * value: ''
29
+ * }] exclude boards by property name and value
30
+ */
31
+ export declare const getBoards: (boards: Board[], type?: string, premium?: boolean, disabled?: boolean, hidden?: boolean, exclude?: {
32
+ prop: string;
33
+ value: string;
34
+ }, include?: never[]) => Board[];
35
+ export {};
36
+ //# sourceMappingURL=boards.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boards.d.ts","sourceRoot":"","sources":["../../../src/boards/boards.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAE/B,KAAK,WAAW,GAAG;IACf,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,KAAK,YAAY,GAAG;IAChB,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB,CAAA;AAED,eAAO,MAAM,YAAY,mEAWtB,YAAY,KAAG,KAAK,EAwDtB,CAAA;AAED,eAAO,MAAM,YAAY,WAAY,KAAK,EAAE,MAAM,MAAM,GAAG,MAAM,sBAI3D,CAAA;AAEN;;;;;;;;;;;;;EAaE;AACF,eAAO,MAAM,SAAS,WACV,KAAK,EAAE;;;yBAUhB,KAAK,EAAiF,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { Board } from './types';
2
+ export declare const boards: Board[];
3
+ export default boards;
4
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../src/boards/data.ts"],"names":[],"mappings":"AAcA,OAAO,EAAmB,KAAK,EAAY,MAAM,SAAS,CAAA;AAE1D,eAAO,MAAM,MAAM,EAAE,KAAK,EAo0GzB,CAAA;AAED,eAAe,MAAM,CAAA"}