oc-template-vue-compiler 4.0.0 → 4.0.2
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.
|
@@ -16,12 +16,12 @@ function vueOCProviderTemplate({ viewPath, providerFunctions }) {
|
|
|
16
16
|
rest.getSetting = getSetting;
|
|
17
17
|
app = createApp(View, rest)
|
|
18
18
|
app.mount(element, ssr);
|
|
19
|
-
}
|
|
20
19
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
element.parentElement.unmount = () => {
|
|
21
|
+
if (app) {
|
|
22
|
+
app.unmount();
|
|
23
|
+
app = null;
|
|
24
|
+
}
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oc-template-vue-compiler",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Compiler for the vueJS OC template",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@vitejs/plugin-vue": "^4.5.2",
|
|
32
32
|
"oc-template-vue": "^0.1.0",
|
|
33
|
-
"oc-vite-compiler": "^6.0.
|
|
33
|
+
"oc-vite-compiler": "^6.0.2"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist/**",
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"@testing-library/jest-dom": "^5.16.5",
|
|
26
26
|
"@testing-library/vue": "^8.0.0",
|
|
27
27
|
"@types/testing-library__jest-dom": "^5.14.5",
|
|
28
|
-
"@vitejs/plugin-vue": "^
|
|
28
|
+
"@vitejs/plugin-vue": "^6.0.2",
|
|
29
29
|
"@vue/tsconfig": "^0.7.0",
|
|
30
30
|
"jsdom": "^21.1.1",
|
|
31
|
-
"oc-server": "^4.0.
|
|
32
|
-
"oc-template-vue-compiler": "^4.0.
|
|
31
|
+
"oc-server": "^4.0.2",
|
|
32
|
+
"oc-template-vue-compiler": "^4.0.2",
|
|
33
33
|
"typescript": "5.8.2",
|
|
34
34
|
"vite": "^7.1.12",
|
|
35
35
|
"vitest": "^0.29.7",
|
package/scaffold/src/src/App.vue
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script setup lang="ts">
|
|
2
2
|
import { ref } from 'vue'
|
|
3
3
|
import logo from '../public/logo.png';
|
|
4
|
-
import { serverClient, ActionOutput } from 'oc-server'
|
|
4
|
+
import { serverClient, ActionOutput } from 'oc-server/client'
|
|
5
5
|
const props = defineProps<{ firstName: string, lastName: string, born: number, hobbies: string[] }>()
|
|
6
6
|
|
|
7
7
|
const additionalData = ref<ActionOutput<'funFact'> | null>(null);
|