@hybridly/vite 0.7.13 → 0.7.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/dist/index.cjs CHANGED
@@ -322,6 +322,7 @@ function generateTsConfig(options, config) {
322
322
  module: "esnext",
323
323
  moduleResolution: "bundler",
324
324
  strict: true,
325
+ skipLibCheck: true,
325
326
  jsx: "preserve",
326
327
  sourceMap: true,
327
328
  resolveJsonModule: true,
@@ -359,6 +360,7 @@ function generateTsConfig(options, config) {
359
360
  "../src/**/*",
360
361
  "./php-types.d.ts",
361
362
  "./global-properties.d.ts",
363
+ "./vue-extension.d.ts",
362
364
  "./routes.d.ts",
363
365
  "./components.d.ts",
364
366
  "./auto-imports.d.ts",
@@ -401,6 +403,25 @@ function generateLaravelIdeaHelper(config) {
401
403
  };
402
404
  write(JSON.stringify(ideJson, null, 2), "ide.json");
403
405
  }
406
+ async function generateVueExtensionFile() {
407
+ const file = `
408
+ /* eslint-disable */
409
+ /* prettier-ignore */
410
+ // This file has been automatically generated by Hybridly
411
+ // Modifications will be discarded
412
+
413
+ import 'vue'
414
+ import type { Component, VNode, h } from 'vue'
415
+
416
+ declare module 'vue' {
417
+ interface ComponentCustomOptions {
418
+ properties?: Record<string, any>
419
+ layout?: Component | Component[] | ((r: typeof h, view: VNode, dialog: VNode, properties: Record<string, any>) => VNode | VNode[])
420
+ }
421
+ }
422
+ `;
423
+ write(file, "vue-extension.d.ts");
424
+ }
404
425
  async function generateRouteDefinitionFile(options, config) {
405
426
  const routing = config?.routing;
406
427
  if (!routing) {
@@ -481,6 +502,7 @@ const initialize = (options, config) => {
481
502
  generateTsConfig(options, config);
482
503
  generateLaravelIdeaHelper(config);
483
504
  generateRouteDefinitionFile(options, config);
505
+ generateVueExtensionFile();
484
506
  return {
485
507
  name: CONFIG_PLUGIN_NAME,
486
508
  enforce: "pre",
package/dist/index.mjs CHANGED
@@ -303,6 +303,7 @@ function generateTsConfig(options, config) {
303
303
  module: "esnext",
304
304
  moduleResolution: "bundler",
305
305
  strict: true,
306
+ skipLibCheck: true,
306
307
  jsx: "preserve",
307
308
  sourceMap: true,
308
309
  resolveJsonModule: true,
@@ -340,6 +341,7 @@ function generateTsConfig(options, config) {
340
341
  "../src/**/*",
341
342
  "./php-types.d.ts",
342
343
  "./global-properties.d.ts",
344
+ "./vue-extension.d.ts",
343
345
  "./routes.d.ts",
344
346
  "./components.d.ts",
345
347
  "./auto-imports.d.ts",
@@ -382,6 +384,25 @@ function generateLaravelIdeaHelper(config) {
382
384
  };
383
385
  write(JSON.stringify(ideJson, null, 2), "ide.json");
384
386
  }
387
+ async function generateVueExtensionFile() {
388
+ const file = `
389
+ /* eslint-disable */
390
+ /* prettier-ignore */
391
+ // This file has been automatically generated by Hybridly
392
+ // Modifications will be discarded
393
+
394
+ import 'vue'
395
+ import type { Component, VNode, h } from 'vue'
396
+
397
+ declare module 'vue' {
398
+ interface ComponentCustomOptions {
399
+ properties?: Record<string, any>
400
+ layout?: Component | Component[] | ((r: typeof h, view: VNode, dialog: VNode, properties: Record<string, any>) => VNode | VNode[])
401
+ }
402
+ }
403
+ `;
404
+ write(file, "vue-extension.d.ts");
405
+ }
385
406
  async function generateRouteDefinitionFile(options, config) {
386
407
  const routing = config?.routing;
387
408
  if (!routing) {
@@ -462,6 +483,7 @@ const initialize = (options, config) => {
462
483
  generateTsConfig(options, config);
463
484
  generateLaravelIdeaHelper(config);
464
485
  generateRouteDefinitionFile(options, config);
486
+ generateVueExtensionFile();
465
487
  return {
466
488
  name: CONFIG_PLUGIN_NAME,
467
489
  enforce: "pre",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hybridly/vite",
3
3
  "type": "module",
4
- "version": "0.7.13",
4
+ "version": "0.7.14",
5
5
  "description": "Vite plugin for Hybridly",
6
6
  "author": "Enzo Innocenzi <enzo@innocenzi.dev>",
7
7
  "license": "MIT",
@@ -45,22 +45,22 @@
45
45
  "vue": "^3.2.45"
46
46
  },
47
47
  "dependencies": {
48
- "@vitejs/plugin-vue": "^5.0.5",
48
+ "@vitejs/plugin-vue": "^5.1.2",
49
49
  "fast-glob": "^3.3.2",
50
50
  "local-pkg": "^0.5.0",
51
- "magic-string": "^0.30.10",
51
+ "magic-string": "^0.30.11",
52
52
  "picocolors": "^1.0.1",
53
- "unplugin-auto-import": "^0.17.6",
54
- "unplugin-icons": "^0.19.0",
55
- "unplugin-vue-components": "^0.27.2",
53
+ "unplugin-auto-import": "^0.17.8",
54
+ "unplugin-icons": "^0.19.2",
55
+ "unplugin-vue-components": "^0.27.4",
56
56
  "vite-plugin-run": "^0.5.2",
57
- "@hybridly/core": "0.7.13"
57
+ "@hybridly/core": "0.7.14"
58
58
  },
59
59
  "devDependencies": {
60
- "@iconify/json": "^2.2.223",
61
- "rollup": "^4.18.0",
62
- "vite": "^5.3.2",
63
- "vue": "^3.4.31"
60
+ "@iconify/json": "^2.2.239",
61
+ "rollup": "^4.21.0",
62
+ "vite": "^5.4.2",
63
+ "vue": "^3.4.38"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "unbuild",