@hybridly/core 0.3.0 → 0.4.0

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 (2) hide show
  1. package/dist/index.d.ts +21 -4
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -300,9 +300,7 @@ interface Progress {
300
300
  /** Computed percentage. */
301
301
  percentage: Readonly<number>;
302
302
  }
303
- interface Errors {
304
- [key: string]: string;
305
- }
303
+ type Errors = any;
306
304
 
307
305
  interface RoutingConfiguration {
308
306
  url: string;
@@ -433,6 +431,25 @@ declare function route<T extends RouteName>(name: T, parameters?: RouteParameter
433
431
  */
434
432
  declare function current<T extends RouteName>(name: T, parameters?: RouteParameters<T>, mode?: 'loose' | 'strict'): boolean;
435
433
 
434
+ interface DynamicConfiguration {
435
+ architecture: {
436
+ root: string;
437
+ };
438
+ components: {
439
+ eager?: boolean;
440
+ directories: string[];
441
+ views: Component[];
442
+ layouts: Component[];
443
+ components: Component[];
444
+ };
445
+ routing: RoutingConfiguration;
446
+ }
447
+ interface Component {
448
+ path: string;
449
+ identifier: string;
450
+ namespace: string;
451
+ }
452
+
436
453
  declare const STORAGE_EXTERNAL_KEY = "hybridly:external";
437
454
  declare const HYBRIDLY_HEADER = "x-hybrid";
438
455
  declare const EXTERNAL_NAVIGATION_HEADER: string;
@@ -475,4 +492,4 @@ declare namespace constants {
475
492
  };
476
493
  }
477
494
 
478
- export { Authorizable, GlobalRouteCollection, HybridPayload, HybridRequestOptions, MaybePromise, Method, NavigationResponse, Plugin, Progress, ResolveComponent, RouteDefinition, RouteName, RouteParameters, Router, RouterContext, RouterContextOptions, RoutingConfiguration, UrlResolvable, can, constants, createRouter, current, definePlugin, getRouterContext, makeUrl, registerHook, route, router, sameUrls };
495
+ export { Authorizable, DynamicConfiguration, GlobalRouteCollection, HybridPayload, HybridRequestOptions, MaybePromise, Method, NavigationResponse, Plugin, Progress, ResolveComponent, RouteDefinition, RouteName, RouteParameters, Router, RouterContext, RouterContextOptions, RoutingConfiguration, UrlResolvable, can, constants, createRouter, current, definePlugin, getRouterContext, makeUrl, registerHook, route, router, sameUrls };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hybridly/core",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Core functionality of Hybridly",
5
5
  "keywords": [
6
6
  "hybridly",
@@ -36,9 +36,9 @@
36
36
  "axios": "^1"
37
37
  },
38
38
  "dependencies": {
39
- "qs": "^6.11.1",
39
+ "qs": "^6.11.2",
40
40
  "superjson": "^1.12.3",
41
- "@hybridly/utils": "0.3.0"
41
+ "@hybridly/utils": "0.4.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "defu": "^6.1.2"