@nexdom/uimed-vue 1.0.0 → 1.1.0-beta.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.
package/README.md CHANGED
@@ -27,7 +27,7 @@ yarn add @nexdom/uimed-vue
27
27
  Add Vite config:
28
28
 
29
29
  ```ts
30
- // vite.config.js
30
+ // vite.config.ts
31
31
  import { vitePluginUimed } from "@nexdom/uimed-vue/plugins.ts";
32
32
 
33
33
  /// ...
package/dist/plugins.d.ts CHANGED
@@ -1,8 +1,13 @@
1
1
  import vitePluginVuetify from "vite-plugin-vuetify";
2
+ import { UserConfig } from "vite-plus";
2
3
  //#region src/plugins.d.ts
3
4
  /**
4
5
  * Vite plugin for Uimed.
5
6
  */
6
7
  declare function vitePluginUimed(): ReturnType<typeof vitePluginVuetify>;
8
+ /**
9
+ * Vitest Server plugin for Uimed.
10
+ */
11
+ declare function vitestServerPluginUimed(): NonNullable<NonNullable<UserConfig["test"]>["server"]>;
7
12
  //#endregion
8
- export { vitePluginUimed };
13
+ export { vitePluginUimed, vitestServerPluginUimed };
package/dist/plugins.js CHANGED
@@ -6,5 +6,11 @@ import vitePluginVuetify from "vite-plugin-vuetify";
6
6
  function vitePluginUimed() {
7
7
  return vitePluginVuetify({ autoImport: false });
8
8
  }
9
+ /**
10
+ * Vitest Server plugin for Uimed.
11
+ */
12
+ function vitestServerPluginUimed() {
13
+ return { deps: { inline: ["vuetify"] } };
14
+ }
9
15
  //#endregion
10
- export { vitePluginUimed };
16
+ export { vitePluginUimed, vitestServerPluginUimed };
@@ -0,0 +1,8 @@
1
+ import { createVuetify } from "vuetify";
2
+ //#region src/unit-test.d.ts
3
+ /**
4
+ * Vue Test Utils plugin for Uimed.
5
+ */
6
+ declare function vueTestUtilsPluginUimed(): ReturnType<typeof createVuetify>;
7
+ //#endregion
8
+ export { vueTestUtilsPluginUimed };
@@ -0,0 +1,23 @@
1
+ import { createVuetify } from "vuetify";
2
+ import * as components from "vuetify/components";
3
+ import * as directives from "vuetify/directives";
4
+ //#region \0rolldown/runtime.js
5
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
6
+ if (typeof require !== "undefined") return require.apply(this, arguments);
7
+ throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
8
+ });
9
+ //#endregion
10
+ //#region src/unit-test.ts
11
+ const vuetify = createVuetify({
12
+ components,
13
+ directives
14
+ });
15
+ /**
16
+ * Vue Test Utils plugin for Uimed.
17
+ */
18
+ function vueTestUtilsPluginUimed() {
19
+ global.ResizeObserver = __require("resize-observer-polyfill");
20
+ return vuetify;
21
+ }
22
+ //#endregion
23
+ export { vueTestUtilsPluginUimed };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexdom/uimed-vue",
3
- "version": "1.0.0",
3
+ "version": "1.1.0-beta.1",
4
4
  "description": "A ui framework for NEXDOM applications.",
5
5
  "keywords": [
6
6
  "lib",
@@ -28,6 +28,7 @@
28
28
  ".": "./dist/index.js",
29
29
  "./components": "./dist/components.js",
30
30
  "./plugins": "./dist/plugins.js",
31
+ "./unit-test": "./dist/unit-test.js",
31
32
  "./package.json": "./package.json"
32
33
  },
33
34
  "publishConfig": {
@@ -81,7 +82,9 @@
81
82
  "peerDependencies": {
82
83
  "@fontsource/roboto": "^5.3.0",
83
84
  "@mdi/font": "^7.4.47",
85
+ "resize-observer-polyfill": "^1.5.1",
84
86
  "vite-plugin-vuetify": "^2.1.3",
87
+ "vite-plus": "^0.2.7",
85
88
  "vue": "^3.5.40",
86
89
  "vuetify": "^4.1.7"
87
90
  },