@razaman2/reactive-view 0.0.34-beta.22 → 0.0.34-beta.23

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.mts CHANGED
@@ -128,7 +128,7 @@ declare function showComponent(component: any, options?: {
128
128
  container?: string;
129
129
  key?: string;
130
130
  router?: any;
131
- }): void;
131
+ }): ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, vue.ComponentProvideOptions>, {}, {}, "", {}, any> | undefined;
132
132
  declare const getData: (component: any, path: number | string, alternative: any) => any;
133
133
  declare const setData: (component: any, data: any, path?: string) => any;
134
134
  declare const dataPath: (component: any, path: string | number) => any;
package/dist/index.d.ts CHANGED
@@ -128,7 +128,7 @@ declare function showComponent(component: any, options?: {
128
128
  container?: string;
129
129
  key?: string;
130
130
  router?: any;
131
- }): void;
131
+ }): ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, vue.ComponentProvideOptions>, {}, {}, "", {}, any> | undefined;
132
132
  declare const getData: (component: any, path: number | string, alternative: any) => any;
133
133
  declare const setData: (component: any, data: any, path?: string) => any;
134
134
  declare const dataPath: (component: any, path: string | number) => any;
package/dist/index.js CHANGED
@@ -174,7 +174,7 @@ var import_vue = require("vue");
174
174
 
175
175
  // package.json
176
176
  var name = "@razaman2/reactive-view";
177
- var version = "0.0.34-beta.22";
177
+ var version = "0.0.34-beta.23";
178
178
 
179
179
  // src/ReactiveView.ts
180
180
  var setup = {
@@ -647,13 +647,14 @@ function showComponent(component, options = {}) {
647
647
  {
648
648
  __cleanup__: () => {
649
649
  document.querySelectorAll(`#${id}`).forEach((element) => element.remove());
650
+ app.unmount();
650
651
  }
651
652
  }
652
653
  );
653
654
  if (options.router) {
654
- app.use(options.router).mount(`#${id}`);
655
+ return app.use(options.router).mount(`#${id}`);
655
656
  } else {
656
- app.mount(`#${id}`);
657
+ return app.mount(`#${id}`);
657
658
  }
658
659
  }
659
660
  }
package/dist/index.mjs CHANGED
@@ -128,7 +128,7 @@ import { ref, reactive, watch, unref, toRaw, isRef, isReactive, createVNode, get
128
128
 
129
129
  // package.json
130
130
  var name = "@razaman2/reactive-view";
131
- var version = "0.0.34-beta.22";
131
+ var version = "0.0.34-beta.23";
132
132
 
133
133
  // src/ReactiveView.ts
134
134
  var setup = {
@@ -601,13 +601,14 @@ function showComponent(component, options = {}) {
601
601
  {
602
602
  __cleanup__: () => {
603
603
  document.querySelectorAll(`#${id}`).forEach((element) => element.remove());
604
+ app.unmount();
604
605
  }
605
606
  }
606
607
  );
607
608
  if (options.router) {
608
- app.use(options.router).mount(`#${id}`);
609
+ return app.use(options.router).mount(`#${id}`);
609
610
  } else {
610
- app.mount(`#${id}`);
611
+ return app.mount(`#${id}`);
611
612
  }
612
613
  }
613
614
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@razaman2/reactive-view",
3
- "version": "0.0.34-beta.22",
3
+ "version": "0.0.34-beta.23",
4
4
  "description": "This library enables you to build vue apps in an object oriented way. It provides a convenient approach to extend and override ui components. It provides a built in eventing system along with component data management.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -9,7 +9,8 @@
9
9
  "prepublishOnly": "npm run build",
10
10
  "build": "tsup src/index.ts --format cjs,esm --dts",
11
11
  "lint": "tsc",
12
- "test": "cd tests/vue-ts && npm run dev"
12
+ "test": "cd tests/vue-ts && npm run dev",
13
+ "pr": "sh pr.sh"
13
14
  },
14
15
  "keywords": [
15
16
  "vue",