@abi-software/scaffoldvuer 1.9.1-beta.1 → 1.9.1-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abi-software/scaffoldvuer",
3
- "version": "1.9.1-beta.1",
3
+ "version": "1.9.1-beta.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -54,7 +54,7 @@
54
54
  "vue": "^3.4.21",
55
55
  "vue-router": "^4.2.5",
56
56
  "vue3-component-svg-sprite": "^0.0.1",
57
- "zincjs": "^1.13.1"
57
+ "zincjs": "^1.13.2"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@vitejs/plugin-vue": "^4.6.2",
@@ -2086,6 +2086,7 @@ export default {
2086
2086
  this.authorisedUser = undefined;
2087
2087
  this.offlineAnnotationEnabled = true;
2088
2088
  }
2089
+ this.emitOfflineAnnotationUpdate();
2089
2090
  this.addAnnotationFeature();
2090
2091
  this.loading = false;
2091
2092
  });
@@ -2106,6 +2107,12 @@ export default {
2106
2107
  this.cancelCreate();
2107
2108
  }
2108
2109
  },
2110
+ /**
2111
+ * Function to emit offline annotation enabled status
2112
+ */
2113
+ emitOfflineAnnotationUpdate: function () {
2114
+ this.$emit('update-offline-annotation-enabled', this.offlineAnnotationEnabled);
2115
+ },
2109
2116
  /**
2110
2117
  * @public
2111
2118
  * Hide the tooltip
@@ -0,0 +1,36 @@
1
+ import { defineConfig } from 'vite'
2
+ import rootConfig from './vite.config.js'
3
+ import { nodePolyfills } from 'vite-plugin-node-polyfills'
4
+ import vue from '@vitejs/plugin-vue'
5
+
6
+ // defineWorkspace provides a nice type hinting DX
7
+ export default defineConfig((configEnv) => {
8
+ const config = rootConfig(configEnv);
9
+ config.css.extract = false
10
+ config.plugins.push(
11
+ nodePolyfills({
12
+ // To add only specific polyfills, add them here. If no option is passed, adds all polyfills
13
+ include: ['path']
14
+ })
15
+ );
16
+ // config.plugins.push(
17
+ // cssInjectedByJsPlugin()
18
+ // );
19
+ config.plugins[0] = vue({
20
+ template: {
21
+ compilerOptions: {
22
+ isCustomElement: (tag) => tag.includes('scaffoldvuer-wc')
23
+ }
24
+ }
25
+ }),
26
+ config.build = {
27
+ lib: {
28
+ entry: './src/ScaffoldVuer-wc.js',
29
+ name: 'scaffoldvuer-wc',
30
+ // the proper extensions will be added
31
+ fileName: 'scaffoldvuer-wc'
32
+ },
33
+ }
34
+
35
+ return config;
36
+ })