@devwareng/vanilla-ts 1.1.37 → 1.1.39

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/dist/index.d.cts CHANGED
@@ -73,6 +73,13 @@ declare const useTSAuth: (_Component: HTMLElement | void, loginUrl: string) => n
73
73
  type TSElementEach = (elements: NodeListOf<HTMLElement> | HTMLElement[], events: (keyof HTMLElementEventMap)[], callback: (element: HTMLElement, event: Event) => void) => void;
74
74
  declare const useTSElementEach: TSElementEach;
75
75
 
76
+ type NavigateFunction = {
77
+ to: (path: string) => void;
78
+ back: () => void;
79
+ forward: () => void;
80
+ };
81
+ declare const useTSNavigate: () => NavigateFunction;
82
+
76
83
  type RouteCallback = (errorElement?: HTMLElement, params?: Record<string, string>, query?: Record<string, string>) => void;
77
84
  interface RouteConfig {
78
85
  path: string;
@@ -95,4 +102,4 @@ declare class TSRouter {
95
102
  addRoute(route: RouteConfig): void;
96
103
  }
97
104
 
98
- export { TSRouter, html, useAnchor, useAnchorSingle, useInitialDOM, useTSAuth, useTSComponent, useTSElementEach, useTSElements, useTSEvent, useTSEventAll, useTSExtractParams, useTSMetaData, useTSParams, useTSPurifier, useTSSelect };
105
+ export { TSRouter, html, useAnchor, useAnchorSingle, useInitialDOM, useTSAuth, useTSComponent, useTSElementEach, useTSElements, useTSEvent, useTSEventAll, useTSExtractParams, useTSMetaData, useTSNavigate, useTSParams, useTSPurifier, useTSSelect };
package/dist/index.d.ts CHANGED
@@ -73,6 +73,13 @@ declare const useTSAuth: (_Component: HTMLElement | void, loginUrl: string) => n
73
73
  type TSElementEach = (elements: NodeListOf<HTMLElement> | HTMLElement[], events: (keyof HTMLElementEventMap)[], callback: (element: HTMLElement, event: Event) => void) => void;
74
74
  declare const useTSElementEach: TSElementEach;
75
75
 
76
+ type NavigateFunction = {
77
+ to: (path: string) => void;
78
+ back: () => void;
79
+ forward: () => void;
80
+ };
81
+ declare const useTSNavigate: () => NavigateFunction;
82
+
76
83
  type RouteCallback = (errorElement?: HTMLElement, params?: Record<string, string>, query?: Record<string, string>) => void;
77
84
  interface RouteConfig {
78
85
  path: string;
@@ -95,4 +102,4 @@ declare class TSRouter {
95
102
  addRoute(route: RouteConfig): void;
96
103
  }
97
104
 
98
- export { TSRouter, html, useAnchor, useAnchorSingle, useInitialDOM, useTSAuth, useTSComponent, useTSElementEach, useTSElements, useTSEvent, useTSEventAll, useTSExtractParams, useTSMetaData, useTSParams, useTSPurifier, useTSSelect };
105
+ export { TSRouter, html, useAnchor, useAnchorSingle, useInitialDOM, useTSAuth, useTSComponent, useTSElementEach, useTSElements, useTSEvent, useTSEventAll, useTSExtractParams, useTSMetaData, useTSNavigate, useTSParams, useTSPurifier, useTSSelect };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devwareng/vanilla-ts",
3
- "version": "1.1.37",
3
+ "version": "1.1.39",
4
4
  "description": "Framework-less TypeScript hooks for SPA development.",
5
5
  "author": "Waren Arapoc Gador",
6
6
  "license": "MIT",