@hybridly/core 0.3.1 → 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 +20 -1
  2. package/package.json +3 -3
package/dist/index.d.ts CHANGED
@@ -431,6 +431,25 @@ declare function route<T extends RouteName>(name: T, parameters?: RouteParameter
431
431
  */
432
432
  declare function current<T extends RouteName>(name: T, parameters?: RouteParameters<T>, mode?: 'loose' | 'strict'): boolean;
433
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
+
434
453
  declare const STORAGE_EXTERNAL_KEY = "hybridly:external";
435
454
  declare const HYBRIDLY_HEADER = "x-hybrid";
436
455
  declare const EXTERNAL_NAVIGATION_HEADER: string;
@@ -473,4 +492,4 @@ declare namespace constants {
473
492
  };
474
493
  }
475
494
 
476
- 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.1",
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.1"
41
+ "@hybridly/utils": "0.4.0"
42
42
  },
43
43
  "devDependencies": {
44
44
  "defu": "^6.1.2"