@plurid/plurid-data 0.0.0-11 → 0.0.0-14
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/distribution/constants/index.d.ts +1 -0
- package/distribution/constants/protocols/index.d.ts +9 -0
- package/distribution/index.es.js +15 -1
- package/distribution/index.es.js.map +1 -1
- package/distribution/index.js +24 -0
- package/distribution/index.js.map +1 -1
- package/distribution/interfaces/external/application/index.d.ts +5 -0
- package/distribution/interfaces/external/link/index.d.ts +3 -4
- package/distribution/interfaces/external/plane/index.d.ts +1 -2
- package/distribution/interfaces/external/router/index.d.ts +2 -4
- package/distribution/interfaces/external/router/route/index.d.ts +8 -1
- package/distribution/interfaces/internal/index.d.ts +1 -0
- package/distribution/interfaces/internal/transform/index.d.ts +4 -0
- package/package.json +13 -14
- package/distribution/interfaces/external/configurator/index.d.ts +0 -12
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { PluridRouteParameter, PluridRouteFragments } from '../router';
|
|
3
2
|
export interface PluridPlaneOptions {
|
|
4
3
|
/**
|
|
@@ -55,7 +54,7 @@ export declare type PluridPlaneTuple<C> = [
|
|
|
55
54
|
options?: PluridPlaneOptions
|
|
56
55
|
];
|
|
57
56
|
export declare type PluridPlane<C> = PluridPlaneObject<C> | PluridPlaneTuple<C>;
|
|
58
|
-
export declare type PluridPlaneContext<T> =
|
|
57
|
+
export declare type PluridPlaneContext<T> = any;
|
|
59
58
|
export interface IndexedPluridPlane<C> {
|
|
60
59
|
protocol: string;
|
|
61
60
|
host: string;
|
|
@@ -27,11 +27,9 @@ export interface PluridRouterProperties<C> {
|
|
|
27
27
|
*/
|
|
28
28
|
protocol?: string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* Production default: `window.location.host`.
|
|
30
|
+
* Default: `'origin'` | `window.location.host`.
|
|
33
31
|
*/
|
|
34
|
-
|
|
32
|
+
hostname?: string;
|
|
35
33
|
/**
|
|
36
34
|
* The `gatewayPath` is used to receive external routing requests.
|
|
37
35
|
*
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { PluridPartialConfiguration } from "../../configuration";
|
|
2
2
|
import { CompareType } from "../../compare";
|
|
3
3
|
import { PluridRouteMultispace } from '../multispace';
|
|
4
|
+
export declare type PluridRouteResolver<C> = Omit<PluridRoute<C>, 'value' | 'resolver'>;
|
|
4
5
|
/**
|
|
5
6
|
* A route can be `plurid space` or `exterior`-based.
|
|
6
7
|
*/
|
|
7
|
-
export interface PluridRoute<C> {
|
|
8
|
+
export interface PluridRoute<C, G = any> {
|
|
8
9
|
/**
|
|
9
10
|
* The route `value` can:
|
|
10
11
|
* + be a simple string, e.g. `'/route/to/page'`;
|
|
@@ -36,6 +37,12 @@ export interface PluridRoute<C> {
|
|
|
36
37
|
slotted?: boolean;
|
|
37
38
|
multispace?: PluridRouteMultispace<C>;
|
|
38
39
|
defaultConfiguration?: PluridPartialConfiguration;
|
|
40
|
+
/**
|
|
41
|
+
* Resolve the route at request time.
|
|
42
|
+
*
|
|
43
|
+
* Receives the `globals` from the preserve, if any.
|
|
44
|
+
*/
|
|
45
|
+
resolver?: (globals: G | undefined) => PluridRouteResolver<C> | Promise<PluridRouteResolver<C>>;
|
|
39
46
|
}
|
|
40
47
|
export interface PluridRouteParameter {
|
|
41
48
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurid/plurid-data",
|
|
3
|
-
"version": "0.0.0-
|
|
3
|
+
"version": "0.0.0-14",
|
|
4
4
|
"description": "Plurid Constants, Interfaces, Enumerations",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"plurid",
|
|
@@ -37,29 +37,28 @@
|
|
|
37
37
|
"scripts": {
|
|
38
38
|
"clean": "rm -rf ./distribution",
|
|
39
39
|
"lint": "eslint ./source --ext .ts,.tsx",
|
|
40
|
-
"start": "
|
|
41
|
-
"build.development": "
|
|
40
|
+
"start": "pnpm clean && rollup -c ./scripts/rollup.config.js -w --environment ENV_MODE:local",
|
|
41
|
+
"build.development": "pnpm clean && rollup -c ./scripts/rollup.config.js --environment ENV_MODE:local",
|
|
42
42
|
"build.production": "rollup -c ./scripts/rollup.config.js --environment ENV_MODE:production",
|
|
43
|
-
"build": "
|
|
44
|
-
"prepublishOnly": "
|
|
43
|
+
"build": "pnpm clean && pnpm build.production",
|
|
44
|
+
"prepublishOnly": "pnpm build"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@plurid/plurid-themes": "*"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@plurid/plurid-themes": "0.0.0-2",
|
|
51
|
-
"@types/node": "^
|
|
52
|
-
"@
|
|
53
|
-
"@typescript-eslint/
|
|
54
|
-
"@typescript-eslint/parser": "^5.13.0",
|
|
51
|
+
"@types/node": "^18.0.5",
|
|
52
|
+
"@typescript-eslint/eslint-plugin": "^5.30.6",
|
|
53
|
+
"@typescript-eslint/parser": "^5.30.6",
|
|
55
54
|
"@zerollup/ts-transform-paths": "^1.7.18",
|
|
56
|
-
"eslint": "^8.
|
|
57
|
-
"rollup": "^2.
|
|
55
|
+
"eslint": "^8.19.0",
|
|
56
|
+
"rollup": "^2.77.0",
|
|
58
57
|
"rollup-plugin-terser": "^7.0.2",
|
|
59
|
-
"rollup-plugin-typescript2": "^0.
|
|
60
|
-
"ts-node": "^10.
|
|
58
|
+
"rollup-plugin-typescript2": "^0.32.1",
|
|
59
|
+
"ts-node": "^10.9.1",
|
|
61
60
|
"ttypescript": "^1.5.13",
|
|
62
|
-
"typescript": "^4.
|
|
61
|
+
"typescript": "^4.7.4",
|
|
63
62
|
"typescript-transform-paths": "^3.3.1"
|
|
64
63
|
}
|
|
65
64
|
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { PluridPubSub } from '../pubsub';
|
|
3
|
-
export interface PluridApplicationConfiguratorProperties {
|
|
4
|
-
/**
|
|
5
|
-
* Publish/Subscribe bus based on `@plurid/plurid-pubsub`.
|
|
6
|
-
*/
|
|
7
|
-
pubsub?: PluridPubSub;
|
|
8
|
-
}
|
|
9
|
-
export interface PluridPlaneConfiguratorProperties {
|
|
10
|
-
theme: string;
|
|
11
|
-
style: React.CSSProperties;
|
|
12
|
-
}
|