@plurid/plurid-engine 0.0.0-17 → 0.0.0-18

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.
@@ -8,7 +8,7 @@ PluridView, PluridApplicationView, PluridConfiguration, RegisteredPluridPlane, T
8
8
  *
9
9
  * @param view
10
10
  */
11
- export declare const resolveViewItem: <C>(planes: Map<string, RegisteredPluridPlane<C>>, view: string | PluridView, configuration: PluridConfiguration, origin?: string) => TreePlane | undefined;
11
+ export declare const resolveViewItem: <C>(planes: Map<string, RegisteredPluridPlane<C>>, view: string | PluridView, configuration: PluridConfiguration, origin?: string, getCount?: () => number) => TreePlane | undefined;
12
12
  /**
13
13
  * Compute the space based on the layout.
14
14
  * If there is no configuration.space.layout, it uses the default '2 COLUMNS' layout.
@@ -16,7 +16,7 @@ export declare const resolveViewItem: <C>(planes: Map<string, RegisteredPluridPl
16
16
  * @param planes
17
17
  * @param configuration
18
18
  */
19
- export declare const computeSpaceTree: <C>(planes: Map<string, RegisteredPluridPlane<C>>, view: PluridApplicationView, configuration: PluridConfiguration, origin?: string) => TreePlane[];
19
+ export declare const computeSpaceTree: <C>(planes: Map<string, RegisteredPluridPlane<C>>, view: PluridApplicationView, configuration: PluridConfiguration, layout: boolean | undefined, origin: string | undefined, getCount: () => number) => TreePlane[];
20
20
  export declare const isParametric: (viewRoute: string, planeRoute: string) => boolean;
21
21
  export declare const matchForParameters: (viewRoute: string, planeRoute: string) => void;
22
22
  export declare const assignPagesFromView: (planes: TreePlane[], view?: PluridApplicationView) => TreePlane[];
@@ -3,11 +3,14 @@ export interface TreeData<C> {
3
3
  planes: Map<string, RegisteredPluridPlane<C>>;
4
4
  view: PluridApplicationView;
5
5
  configuration: PluridConfiguration;
6
+ layout?: boolean;
6
7
  previousTree?: TreePlane[];
7
8
  }
8
9
  export default class Tree<C> {
9
10
  private data;
10
11
  private origin;
12
+ private count;
11
13
  constructor(data: TreeData<C>, origin?: string);
12
14
  compute(): TreePlane[];
15
+ private getCount;
13
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plurid/plurid-engine",
3
- "version": "0.0.0-17",
3
+ "version": "0.0.0-18",
4
4
  "description": "Plurid Engine and Utility Functions",
5
5
  "keywords": [
6
6
  "plurid",
@@ -51,21 +51,21 @@
51
51
  "@plurid/plurid-themes": "*"
52
52
  },
53
53
  "devDependencies": {
54
- "@plurid/plurid-data": "0.0.0-18",
54
+ "@plurid/plurid-data": "0.0.0-19",
55
55
  "@plurid/plurid-functions": "0.0.0-30",
56
56
  "@plurid/plurid-pubsub": "0.0.0-9",
57
57
  "@plurid/plurid-themes": "0.0.0-2",
58
58
  "@rollup/plugin-commonjs": "^22.0.2",
59
59
  "@types/jest": "^29.0.0",
60
- "@types/node": "^18.7.14",
61
- "@typescript-eslint/eslint-plugin": "^5.36.1",
62
- "@typescript-eslint/parser": "^5.36.1",
60
+ "@types/node": "^18.7.15",
61
+ "@typescript-eslint/eslint-plugin": "^5.36.2",
62
+ "@typescript-eslint/parser": "^5.36.2",
63
63
  "@zerollup/ts-transform-paths": "^1.7.18",
64
64
  "coveralls": "^3.1.1",
65
65
  "eslint": "^8.23.0",
66
- "jest": "^29.0.1",
67
- "jest-config": "^29.0.1",
68
- "jest-environment-jsdom": "^29.0.1",
66
+ "jest": "^29.0.2",
67
+ "jest-config": "^29.0.2",
68
+ "jest-environment-jsdom": "^29.0.2",
69
69
  "rimraf": "^3.0.2",
70
70
  "rollup": "^2.79.0",
71
71
  "rollup-plugin-sourcemaps": "^0.6.3",