@plurid/plurid-engine 0.0.0-0 → 0.0.0-11

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.
Files changed (76) hide show
  1. package/distribution/functions/index.d.ts +2 -0
  2. package/distribution/functions/navigate/index.d.ts +1 -0
  3. package/distribution/functions/template/index.d.ts +1 -0
  4. package/distribution/index.d.ts +1 -0
  5. package/distribution/index.es.js +2602 -2966
  6. package/distribution/index.es.js.map +1 -1
  7. package/distribution/index.js +2688 -3035
  8. package/distribution/index.js.map +1 -1
  9. package/distribution/modules/{setup/general → general}/configuration/index.d.ts +0 -0
  10. package/distribution/modules/general/index.d.ts +3 -0
  11. package/distribution/modules/{setup/general → general}/tree/index.d.ts +1 -1
  12. package/distribution/modules/index.d.ts +8 -9
  13. package/distribution/modules/interaction/direction/index.d.ts +2 -6
  14. package/distribution/modules/interaction/index.d.ts +5 -0
  15. package/distribution/modules/interaction/mathematics/transform/general/index.d.ts +9 -0
  16. package/distribution/modules/interaction/mathematics/transform/index.d.ts +3 -69
  17. package/distribution/modules/interaction/mathematics/transform/matrix3d/index.d.ts +69 -0
  18. package/distribution/modules/{setup/internationalization → internationalization}/index.d.ts +0 -0
  19. package/distribution/modules/planes/index.d.ts +2 -0
  20. package/distribution/modules/planes/logic/index.d.ts +6 -0
  21. package/distribution/modules/planes/registrar/index.d.ts +3 -0
  22. package/distribution/modules/planes/registrar/object.d.ts +14 -0
  23. package/distribution/modules/planes/registrar/utilities.d.ts +6 -0
  24. package/distribution/modules/routing/IsoMatcher/index.d.ts +44 -0
  25. package/distribution/modules/{setup/router → routing}/Parser/index.d.ts +3 -3
  26. package/distribution/modules/{setup/router → routing}/Parser/interfaces.d.ts +10 -2
  27. package/distribution/modules/{setup/router → routing}/Parser/logic.d.ts +0 -0
  28. package/distribution/modules/routing/index.d.ts +6 -0
  29. package/distribution/modules/routing/logic/general/index.d.ts +8 -0
  30. package/distribution/modules/routing/logic/index.d.ts +3 -0
  31. package/distribution/modules/{setup/router → routing/logic}/utilities/index.d.ts +10 -1
  32. package/distribution/modules/routing/logic/validity/index.d.ts +3 -0
  33. package/distribution/modules/{setup/space → space}/index.d.ts +0 -0
  34. package/distribution/modules/{setup/space → space}/layout/column.d.ts +0 -0
  35. package/distribution/modules/{setup/space → space}/layout/faceToFace.d.ts +0 -0
  36. package/distribution/modules/{setup/space → space}/layout/index.d.ts +0 -0
  37. package/distribution/modules/{setup/space → space}/layout/row.d.ts +0 -0
  38. package/distribution/modules/{setup/space → space}/layout/sheaves.d.ts +0 -0
  39. package/distribution/modules/{setup/space → space}/layout/zigZag.d.ts +0 -0
  40. package/distribution/modules/{setup/space → space}/location/index.d.ts +0 -0
  41. package/distribution/modules/{setup/space → space}/location/logic.d.ts +1 -1
  42. package/distribution/modules/{setup/space → space}/tree/index.d.ts +0 -0
  43. package/distribution/modules/{setup/space → space}/tree/logic.d.ts +12 -8
  44. package/distribution/modules/space/tree/object.d.ts +13 -0
  45. package/distribution/modules/{setup/space → space}/utilities/index.d.ts +0 -0
  46. package/distribution/modules/{setup/space → space}/view/index.d.ts +0 -0
  47. package/distribution/modules/{setup/space → space}/view/logic.d.ts +0 -0
  48. package/distribution/modules/state/compute/index.d.ts +3 -0
  49. package/distribution/modules/state/compute/space/index.d.ts +3 -0
  50. package/distribution/modules/state/compute/themes/index.d.ts +3 -0
  51. package/distribution/modules/state/index.d.ts +3 -0
  52. package/distribution/modules/state/local/index.d.ts +3 -0
  53. package/package.json +32 -31
  54. package/distribution/modules/interaction/mathematics/matrix/__specs__/matrix.spec.d.ts +0 -1
  55. package/distribution/modules/interaction/mathematics/quaternion/__specs__/quaternion.spec.d.ts +0 -1
  56. package/distribution/modules/interaction/mathematics/transform/__specs__/transform.spec.d.ts +0 -1
  57. package/distribution/modules/setup/general/helpers/identified.d.ts +0 -1
  58. package/distribution/modules/setup/general/helpers/index.d.ts +0 -2
  59. package/distribution/modules/setup/general/helpers/indexed.d.ts +0 -7
  60. package/distribution/modules/setup/general/index.d.ts +0 -7
  61. package/distribution/modules/setup/general/paths/index.d.ts +0 -4
  62. package/distribution/modules/setup/general/planes/index.d.ts +0 -4
  63. package/distribution/modules/setup/general/universes/index.d.ts +0 -21
  64. package/distribution/modules/setup/router/Matcher/__specs__/index.d.ts +0 -1
  65. package/distribution/modules/setup/router/Matcher/index.d.ts +0 -15
  66. package/distribution/modules/setup/router/Matcher/interfaces.d.ts +0 -12
  67. package/distribution/modules/setup/router/Matcher/logic.d.ts +0 -3
  68. package/distribution/modules/setup/router/Router/__specs__/index.d.ts +0 -1
  69. package/distribution/modules/setup/router/Router/index.d.ts +0 -28
  70. package/distribution/modules/setup/router/Router/interfaces.d.ts +0 -8
  71. package/distribution/modules/setup/router/URLRouter/data.d.ts +0 -27
  72. package/distribution/modules/setup/router/URLRouter/index.d.ts +0 -8
  73. package/distribution/modules/setup/router/URLRouter/logic.d.ts +0 -12
  74. package/distribution/modules/setup/router/index.d.ts +0 -11
  75. package/distribution/modules/setup/router/interfaces.d.ts +0 -3
  76. package/distribution/modules/setup/space/tree/object.d.ts +0 -13
@@ -1,2 +0,0 @@
1
- export * from './identified';
2
- export * from './indexed';
@@ -1,7 +0,0 @@
1
- import { Indexed } from '@plurid/plurid-data';
2
- interface TwithID {
3
- id: string;
4
- [key: string]: any;
5
- }
6
- export declare const createIndexed: <T extends TwithID>(items: T[]) => Indexed<T>;
7
- export {};
@@ -1,7 +0,0 @@
1
- import * as configuration from './configuration';
2
- import * as helpers from './helpers';
3
- import * as paths from './paths';
4
- import * as planes from './planes';
5
- import * as tree from './tree';
6
- import * as universes from './universes';
7
- export { configuration, universes, helpers, planes, paths, tree, };
@@ -1,4 +0,0 @@
1
- import { PluridInternalStatePlane, PlanePath } from '@plurid/plurid-data';
2
- export declare const registerPaths: (pages: PluridInternalStatePlane[]) => PlanePath[];
3
- export declare const composePathRegex: (match: RegExpMatchArray) => string;
4
- export declare const subpathIsParameter: (subpath: string) => boolean;
@@ -1,4 +0,0 @@
1
- import { PluridPlane, PluridInternalStatePlane, PluridInternalContextPlane } from '@plurid/plurid-data';
2
- export declare const createInternalStatePlane: (plane: PluridPlane) => PluridInternalStatePlane;
3
- export declare const createInternalContextPlane: (plane: PluridPlane) => PluridInternalContextPlane;
4
- export declare const getPluridPlaneIDByData: (element: HTMLElement | null) => any;
@@ -1,21 +0,0 @@
1
- import { PluridUniverse, PluridInternalStateUniverse, PluridInternalContextUniverse } from '@plurid/plurid-data';
2
- /**
3
- * From `PluridUniverse` create `PluridInternalStateUniverse`.
4
- *
5
- * @param universe
6
- */
7
- export declare const createInternalStateUniverse: (universe: PluridUniverse) => PluridInternalStateUniverse;
8
- /**
9
- * From PluridUniverse create PluridInternalContextUniverse.
10
- *
11
- * @param universe
12
- */
13
- export declare const createInternalContextUniverse: (universe: PluridUniverse) => PluridInternalContextUniverse;
14
- /**
15
- * Get the universeID if any of the `universes` is active.
16
- *
17
- * If no universe is active, returns the id of the first universe.
18
- *
19
- * @param universes
20
- */
21
- export declare const findActiveUniverse: (universes: PluridInternalStateUniverse[]) => string;
@@ -1,15 +0,0 @@
1
- import { PluridRoute } from '@plurid/plurid-data';
2
- import { MatcherPartialOptions, MatcherResponse } from './interfaces';
3
- export default class Matcher<T> {
4
- private location;
5
- private path;
6
- private options;
7
- private matchedData;
8
- constructor(location: string, path: PluridRoute, options?: MatcherPartialOptions);
9
- private handleOptions;
10
- private checkMatch;
11
- /**
12
- * Extract pathname, parameters, query, and fragment, if available.
13
- */
14
- data(): MatcherResponse | undefined;
15
- }
@@ -1,12 +0,0 @@
1
- import { PluridRoute, PluridRouteFragments } from '@plurid/plurid-data';
2
- export declare type MatcherPartialOptions = Partial<MatcherOptions>;
3
- export interface MatcherOptions {
4
- }
5
- export interface MatcherResponse {
6
- path: PluridRoute;
7
- pathname: string;
8
- parameters: Record<string, string>;
9
- query: Record<string, string>;
10
- fragments: PluridRouteFragments;
11
- route: string;
12
- }
@@ -1,3 +0,0 @@
1
- import { ParserResponse } from '../interfaces';
2
- export declare const checkParameterLength: (parameter: string, length: number, compareType?: "==" | "<=" | "<" | ">=" | ">" | undefined) => boolean;
3
- export declare const checkValidPath: (data: ParserResponse) => boolean;
@@ -1,28 +0,0 @@
1
- import { PluridRoute } from '@plurid/plurid-data';
2
- import { RouterPartialOptions } from './interfaces';
3
- import { MatcherResponse } from '../Matcher/interfaces';
4
- export default class Router {
5
- private paths;
6
- private options;
7
- private cachedMatched;
8
- constructor(paths: PluridRoute[], options?: RouterPartialOptions);
9
- private handleOptions;
10
- /**
11
- * Check if the cache exceeds the cache limit and reset if true.
12
- */
13
- private checkCacheReset;
14
- /**
15
- * Extract pathname, parameters, query, and fragment, if available.
16
- */
17
- match(location: string): MatcherResponse | {
18
- path: any;
19
- pathname: any;
20
- parameters: {};
21
- query: {};
22
- fragments: {
23
- texts: never[];
24
- elements: never[];
25
- };
26
- route: string;
27
- } | undefined;
28
- }
@@ -1,8 +0,0 @@
1
- export declare type RouterPartialOptions = Partial<RouterOptions>;
2
- export interface RouterOptions {
3
- /**
4
- * Number of the routes kept in cache. Default `1000`.
5
- */
6
- cacheLimit: number;
7
- gateway: string | undefined;
8
- }
@@ -1,27 +0,0 @@
1
- import { PluridRouteParameter } from '@plurid/plurid-data';
2
- export declare const CATCH_ALL_ROUTE = "*";
3
- export interface URLRoute {
4
- value: string;
5
- parameters?: Record<string, PluridRouteParameter>;
6
- }
7
- export interface MatchedRoute {
8
- target: string;
9
- source: string;
10
- elements: RouteElements;
11
- parameters?: Record<string, string>;
12
- }
13
- export interface ProcessedRoute {
14
- value: string;
15
- parametersValues: string[];
16
- parameters?: Record<string, PluridRouteParameter>;
17
- }
18
- export interface InternalMatchedRoute {
19
- target: string;
20
- source: string;
21
- parameters: Record<string, string>;
22
- }
23
- export interface RouteElements {
24
- path: string;
25
- query: string;
26
- fragment: string;
27
- }
@@ -1,8 +0,0 @@
1
- import { URLRoute, MatchedRoute } from './data';
2
- declare class URLRouter {
3
- private routes;
4
- constructor(routes: URLRoute[]);
5
- match(route: string): MatchedRoute | undefined;
6
- private processRoutes;
7
- }
8
- export default URLRouter;
@@ -1,12 +0,0 @@
1
- import { PluridRouteParameter } from '@plurid/plurid-data';
2
- import { ProcessedRoute, URLRoute, InternalMatchedRoute, RouteElements } from './data';
3
- export declare const processRoute: (route: URLRoute) => ProcessedRoute;
4
- export declare const matchRoutes: (route: string, routes: Record<string, ProcessedRoute>) => InternalMatchedRoute | undefined;
5
- export declare const matchRoute: (route: string, processedRoute: ProcessedRoute) => InternalMatchedRoute | undefined;
6
- /**
7
- * Separate the route into the path, the query, and the fragment.
8
- *
9
- * @param route
10
- */
11
- export declare const extractRouteElements: (route: string) => RouteElements;
12
- export declare const checkValidPath: (parameters: Record<string, string>, validationParameters: Record<string, PluridRouteParameter> | undefined) => boolean;
@@ -1,11 +0,0 @@
1
- import Router from './Router';
2
- import URLRouter from './URLRouter';
3
- import RouteMatcher from './Matcher';
4
- import RouteParser from './Parser';
5
- import { mapPathsToRoutes, pluridLinkPathDivider, resolveRoute } from './utilities';
6
- import { extractQuery } from './Parser/logic';
7
- export default Router;
8
- export { URLRouter, RouteMatcher, RouteParser,
9
- /** utilities */
10
- mapPathsToRoutes, pluridLinkPathDivider, resolveRoute, extractQuery, };
11
- export * from './interfaces';
@@ -1,3 +0,0 @@
1
- export * from './Router/interfaces';
2
- export * from './Matcher/interfaces';
3
- export * from './Parser/interfaces';
@@ -1,13 +0,0 @@
1
- import { TreePlane, RegisteredPluridPlane, PluridConfiguration, PluridView, PluridCluster } from '@plurid/plurid-data';
2
- export interface TreeData {
3
- planes: Map<string, RegisteredPluridPlane>;
4
- view: string[] | PluridView[];
5
- configuration: PluridConfiguration;
6
- clusters?: PluridCluster[];
7
- previousTree?: TreePlane[];
8
- }
9
- export default class Tree {
10
- private data;
11
- constructor(data: TreeData);
12
- compute(): TreePlane[];
13
- }