ziggy-js 2.0.1 → 2.0.3

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/package.json +3 -3
  2. package/src/js/index.d.ts +12 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ziggy-js",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Use your Laravel named routes in JavaScript.",
5
5
  "keywords": [
6
6
  "laravel",
@@ -34,8 +34,8 @@
34
34
  ],
35
35
  "type": "module",
36
36
  "source": "./src/js/index.js",
37
- "exports": "./dist/ziggy.js",
38
- "module": "./dist/ziggy.esm.js",
37
+ "exports": "./dist/index.js",
38
+ "module": "./dist/index.esm.js",
39
39
  "types": "./src/js/index.d.ts",
40
40
  "scripts": {
41
41
  "build": "npm run build:esm && npm run build:umd",
package/src/js/index.d.ts CHANGED
@@ -170,3 +170,15 @@ export function route(
170
170
  absolute?: boolean,
171
171
  config?: Config,
172
172
  ): Router;
173
+
174
+ /**
175
+ * Ziggy's Vue plugin.
176
+ */
177
+ export const ZiggyVue: {
178
+ install(app: any, options?: Config): void;
179
+ };
180
+
181
+ /**
182
+ * Ziggy's React hook.
183
+ */
184
+ export function useRoute(defaultConfig?: Config): typeof route;