tresjs-nuxt 4.3.1 → 4.3.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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,4 @@
1
1
  import { ModuleOptions } from "./models/ModuleOptions.js";
2
2
  import { NuxtModule } from "@nuxt/schema";
3
- //#region src/module.d.ts
4
3
  declare const tresjsModule: NuxtModule<ModuleOptions>;
5
- //#endregion
6
4
  export { type ModuleOptions, tresjsModule as default };
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import { getExportNames } from "./services/getExportNames.js";
4
4
  import { getTresPackageNames } from "./services/getTresPackageNames.js";
5
5
  import { addComponent, addImports, addVitePlugin, createResolver, defineNuxtModule, resolvePath } from "@nuxt/kit";
6
6
  import { defu } from "defu";
7
- //#region src/module.ts
7
+ // src/module.ts
8
8
  const LOWERCASE_NAME_REGEX = /^[a-z]/u;
9
9
  const tresjsModule = defineNuxtModule({
10
10
  defaults: {
@@ -74,5 +74,4 @@ const tresjsModule = defineNuxtModule({
74
74
  }
75
75
  }
76
76
  });
77
- //#endregion
78
77
  export { tresjsModule as default };
@@ -1,6 +1,4 @@
1
- //#region src/models/ModuleOptions.d.ts
2
1
  export interface ModuleOptions {
3
2
  glsl?: boolean;
4
3
  modules?: string[];
5
- }
6
- //#endregion
4
+ }
@@ -1,5 +1,3 @@
1
1
  import { Component } from "vue";
2
- //#region src/runtime/TresCanvas.client.d.ts
3
2
  declare const tresCanvasClient: Component;
4
- //#endregion
5
3
  export { tresCanvasClient as default };
@@ -1,6 +1,6 @@
1
1
  import { TresCanvas } from "@tresjs/core";
2
2
  import { defineComponent, h } from "vue";
3
- //#region src/runtime/TresCanvas.client.ts
3
+ // src/runtime/TresCanvas.client.ts
4
4
  const tresCanvasClient = defineComponent({
5
5
  inheritAttrs: false,
6
6
  name: "TresCanvas",
@@ -8,5 +8,4 @@ const tresCanvasClient = defineComponent({
8
8
  return () => h(TresCanvas, attrs, slots);
9
9
  }
10
10
  });
11
- //#endregion
12
11
  export { tresCanvasClient as default };
@@ -1,5 +1,3 @@
1
1
  import { Component } from "vue";
2
- //#region src/runtime/TresCanvas.server.d.ts
3
2
  declare const tresCanvasServer: Component;
4
- //#endregion
5
3
  export { tresCanvasServer as default };
@@ -1,8 +1,7 @@
1
1
  import { defineComponent, h } from "vue";
2
- //#region src/runtime/TresCanvas.server.ts
2
+ // src/runtime/TresCanvas.server.ts
3
3
  const tresCanvasServer = defineComponent({
4
4
  name: "TresCanvas",
5
5
  setup: () => () => h("span")
6
6
  });
7
- //#endregion
8
7
  export { tresCanvasServer as default };
@@ -1,8 +1,7 @@
1
1
  import { TRES_CORE_COMPONENT_NAMES } from "./constants.js";
2
- //#region src/services/checkIsTresCustomElement.ts
2
+ // src/services/checkIsTresCustomElement.ts
3
3
  const PRIMITIVE_TAG_NAME = "primitive";
4
4
  const TRES_COMPONENT_NAME_REGEX = /^Tres[A-Z]/u;
5
5
  const TRES_ELEMENT_NAME_PREFIX = "tres-";
6
6
  const checkIsTresCustomElement = (tagName) => (TRES_COMPONENT_NAME_REGEX.test(tagName) || tagName.startsWith(TRES_ELEMENT_NAME_PREFIX)) && !TRES_CORE_COMPONENT_NAMES.includes(tagName) || tagName === PRIMITIVE_TAG_NAME;
7
- //#endregion
8
7
  export { checkIsTresCustomElement };
@@ -1,4 +1,4 @@
1
- //#region src/services/constants.ts
1
+ // src/services/constants.ts
2
2
  const CORE_PACKAGE_NAME = "@tresjs/core";
3
3
  const GLSL_PACKAGE_NAME = "vite-plugin-glsl";
4
4
  const THREE_PACKAGE_NAME = "three";
@@ -11,5 +11,4 @@ const TRES_CORE_COMPONENT_NAMES = [
11
11
  "TresPortal",
12
12
  "TresScene"
13
13
  ];
14
- //#endregion
15
14
  export { CORE_PACKAGE_NAME, GLSL_PACKAGE_NAME, THREE_PACKAGE_NAME, TRES_CANVAS_NAME, TRES_CORE_COMPONENT_NAMES, TRES_PACKAGE_SCOPE };
@@ -1,6 +1,5 @@
1
1
  import { findExportNames } from "mlly";
2
2
  import { readFile } from "node:fs/promises";
3
- //#region src/services/getExportNames.ts
3
+ // src/services/getExportNames.ts
4
4
  const getExportNames = async (entryPath) => findExportNames(await readFile(entryPath, "utf8"));
5
- //#endregion
6
5
  export { getExportNames };
@@ -2,7 +2,7 @@ import "./constants.js";
2
2
  import { readFile } from "node:fs/promises";
3
3
  import { existsSync } from "node:fs";
4
4
  import { dirname, join } from "node:path";
5
- //#region src/services/getTresPackageNames.ts
5
+ // src/services/getTresPackageNames.ts
6
6
  const getDependencyNames = async (directory) => {
7
7
  const manifest = JSON.parse(await readFile(join(directory, "package.json"), "utf8"));
8
8
  return [...Object.keys(manifest.dependencies ?? {}), ...Object.keys(manifest.devDependencies ?? {})];
@@ -13,5 +13,4 @@ const getTresPackageNames = async (rootDirectory) => {
13
13
  const dependencyNames = (await Promise.all(directories.map((directory) => getDependencyNames(directory)))).flat();
14
14
  return [...new Set(dependencyNames)].filter((dependencyName) => dependencyName.startsWith("@tresjs/") && dependencyName !== "@tresjs/core");
15
15
  };
16
- //#endregion
17
16
  export { getTresPackageNames };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tresjs-nuxt",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
4
4
  "description": "TresJS for Nuxt — a Nuxt module that auto-imports the TresJS core API, registers TresCanvas for client and server, and registers every installed @tresjs package's components and composables, with no devtools UI of its own.",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -52,7 +52,7 @@
52
52
  "mlly": "^1.8.2"
53
53
  },
54
54
  "devDependencies": {
55
- "@esposter/configuration": "4.3.1",
55
+ "@esposter/configuration": "4.3.3",
56
56
  "tsdown": "^0.23.1",
57
57
  "vite-plugin-glsl": "^1.6.2"
58
58
  },
@@ -68,5 +68,5 @@
68
68
  "optional": true
69
69
  }
70
70
  },
71
- "gitHead": "777a39636b789c13af33ed13370246ccf6dbaf31"
71
+ "gitHead": "955bbc130ad9b28877fd4ae8efc73a045141ce01"
72
72
  }