@nckrtl/launch-ui 0.0.33 → 0.1.1

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.
@@ -1,6 +1,6 @@
1
1
  import { readFileSync } from "node:fs";
2
2
  import { posix, sep } from "node:path";
3
- //#region src/vite/i18n-plugin.ts
3
+ // src/vite/i18n-plugin.ts
4
4
  const VIRTUAL_MODULE_ID = "virtual:launch-i18n";
5
5
  const RESOLVED_VIRTUAL_MODULE_ID = "\0" + VIRTUAL_MODULE_ID;
6
6
  const ENTRY_PATTERN = /resources\/js\/app\.(tsx|ts|jsx|js)$/;
@@ -171,5 +171,4 @@ function translationKey(file, entry, root, langPath) {
171
171
  const relative = posix.relative(posix.dirname(toPosix(entry)), toPosix(file));
172
172
  return relative.startsWith(".") ? relative : "./" + relative;
173
173
  }
174
- //#endregion
175
174
  export { launchI18nPlugin };
package/dist/index.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { PluginOption, UserConfig } from "vite-plus";
2
- //#region src/vite/types.d.ts
3
2
  /**
4
3
  * Options for defineLaunchConfig
5
4
  *
@@ -74,17 +73,11 @@ interface LaunchConfigOptions {
74
73
  * @deprecated Use `LaunchConfigOptions` instead.
75
74
  */
76
75
  type CraftConfigOptions = LaunchConfigOptions;
77
- //#endregion
78
- //#region src/vite/environment.d.ts
79
76
  type Environment = Record<string, string | undefined>;
80
- //#endregion
81
- //#region src/vite/plugins.d.ts
82
77
  /**
83
78
  * Assemble all Vite plugins for the Launch React stack
84
79
  */
85
80
  export declare function getPlugins(options: LaunchConfigOptions, env?: Environment): Promise<PluginOption[]>;
86
- //#endregion
87
- //#region src/vite/index.d.ts
88
81
  /**
89
82
  * Create a complete Vite config for a Launch React app.
90
83
  *
@@ -100,5 +93,4 @@ export declare function defineLaunchConfig(options?: LaunchConfigOptions): Promi
100
93
  * @deprecated Use `defineLaunchConfig` instead.
101
94
  */
102
95
  export declare const defineCraftConfig: typeof defineLaunchConfig;
103
- //#endregion
104
96
  export type { CraftConfigOptions, LaunchConfigOptions };
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineConfig, isCSSRequest, loadEnv } from "vite-plus";
2
2
  import { existsSync, readFileSync } from "node:fs";
3
3
  import { pathToFileURL } from "node:url";
4
4
  import { join } from "node:path";
5
- //#region src/vite/environment.ts
5
+ // src/vite/environment.ts
6
6
  function orbitDevServerUrl(env) {
7
7
  const origin = env.ORBIT_DEV_SERVER_ORIGIN;
8
8
  if (!origin) return null;
@@ -23,8 +23,7 @@ function inertiaOptions(options, env) {
23
23
  }
24
24
  };
25
25
  }
26
- //#endregion
27
- //#region src/vite/php-reload-plugin.ts
26
+ // src/vite/php-reload-plugin.ts
28
27
  const PHP_UPDATE_EVENT = "launch:php-update";
29
28
  const EVENT = PHP_UPDATE_EVENT;
30
29
  const CLIENT_CODE = `
@@ -71,8 +70,7 @@ function launchPhpReloadPlugin(entries) {
71
70
  }
72
71
  };
73
72
  }
74
- //#endregion
75
- //#region src/vite/plugins.ts
73
+ // src/vite/plugins.ts
76
74
  /**
77
75
  * Import a package from the consumer project's node_modules.
78
76
  * Reads the package's entry point from its package.json exports/main field,
@@ -131,7 +129,7 @@ async function getPlugins(options, env = process.env) {
131
129
  }));
132
130
  }
133
131
  if (options.i18n) {
134
- const { launchI18nPlugin } = await import("./i18n-plugin-COS6dy2U.mjs");
132
+ const { launchI18nPlugin } = await import("./i18n-plugin-DOhFbnTp.mjs");
135
133
  plugins.push(launchI18nPlugin(options.i18n, { reloadEvent: phpReload ? PHP_UPDATE_EVENT : void 0 }));
136
134
  }
137
135
  plugins.push(launchPublicDevServerUrlPlugin(env));
@@ -242,8 +240,7 @@ async function getArtisanRunners() {
242
240
  return null;
243
241
  }
244
242
  }
245
- //#endregion
246
- //#region src/vite/index.ts
243
+ // src/vite/index.ts
247
244
  /**
248
245
  * Create a complete Vite config for a Launch React app.
249
246
  *
@@ -275,5 +272,4 @@ async function defineLaunchConfig(options = {}) {
275
272
  * @deprecated Use `defineLaunchConfig` instead.
276
273
  */
277
274
  const defineCraftConfig = defineLaunchConfig;
278
- //#endregion
279
275
  export { defineCraftConfig, defineLaunchConfig, getPlugins };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nckrtl/launch-ui",
3
- "version": "0.0.33",
3
+ "version": "0.1.1",
4
4
  "description": "A React component library and Vite toolchain for building Laravel + React + Inertia apps. Built on Base UI and shadcn.",
5
5
  "author": "nckrtl <nick.retel@gmail.com>",
6
6
  "license": "MIT",
@@ -69,8 +69,8 @@
69
69
  "tw-animate-css": "^1.4.0",
70
70
  "typescript": "^5.9.3",
71
71
  "vaul": "^1.1.2",
72
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.3",
73
- "vite-plus": "^0.3.3"
72
+ "vite": "npm:@voidzero-dev/vite-plus-core@8.4.0",
73
+ "vite-plus": "^1.9.0"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "@inertiajs/vite": "^3.0.0",
@@ -78,7 +78,7 @@
78
78
  "@tailwindcss/vite": "^4.2.0",
79
79
  "@vitejs/plugin-react": "^6.0.0",
80
80
  "laravel-vite-plugin": "^3.0.0",
81
- "vite-plus": "^0.2.1 || ^0.3.0"
81
+ "vite-plus": "^0.2.1 || ^0.3.0 || ^1.0.0"
82
82
  },
83
83
  "peerDependenciesMeta": {
84
84
  "vite-plugin-run": {
@@ -87,7 +87,7 @@
87
87
  },
88
88
  "packageManager": "npm@11.12.1",
89
89
  "overrides": {
90
- "vite": "npm:@voidzero-dev/vite-plus-core@0.3.3",
90
+ "vite": "npm:@voidzero-dev/vite-plus-core@8.4.0",
91
91
  "storybook": {
92
92
  "vite-plus": "$vite-plus"
93
93
  }