@abi-software/scaffoldvuer 1.9.0-beta.1 → 1.9.0-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.0-beta.1",
3
+ "version": "1.9.0-beta.3",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,7 @@
41
41
  "*.js"
42
42
  ],
43
43
  "dependencies": {
44
- "@abi-software/map-utilities": "^1.5.0-beta.1",
44
+ "@abi-software/map-utilities": "^1.5.0-beta.3",
45
45
  "@abi-software/sparc-annotation": "^0.3.2",
46
46
  "@abi-software/svg-sprite": "^1.0.1",
47
47
  "@element-plus/icons-vue": "^2.3.1",
@@ -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.0"
57
+ "zincjs": "^1.13.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@vitejs/plugin-vue": "^4.6.2",
@@ -160,13 +160,13 @@ export default {
160
160
  this.display = true;
161
161
  if (this.annotationDisplay) {
162
162
  const region = this.region ? this.region +"/" : "";
163
- this.annotationEntry.push({
163
+ this.annotationEntry = [{
164
164
  "featureId": region + this.label,
165
165
  "resourceId": this.scaffoldUrl,
166
166
  "resource": this.scaffoldUrl,
167
167
  "feature": this.annotationFeature,
168
168
  "offline": this.offlineAnnotationEnabled,
169
- });
169
+ }];
170
170
  }
171
171
  }
172
172
  else {
package/vite.config.js CHANGED
@@ -46,12 +46,14 @@ export default defineConfig(({ command, mode }) => {
46
46
  fileName: 'scaffoldvuer',
47
47
  },
48
48
  rollupOptions: {
49
- external: ["vue", "@abi-software/svg-sprite", "@abi-software/map-utilities"],
49
+ external: ["vue", "@abi-software/sparc-annotation", "@abi-software/svg-sprite", "@abi-software/map-utilities", "pinia"],
50
50
  output: {
51
51
  globals: {
52
52
  vue: "Vue",
53
+ "@abi-software/sparc-annotation": "@abi-software/sparc-annotation",
53
54
  "@abi-software/svg-sprite": "@abi-software/svg-sprite",
54
- "@abi-software/map-utilities": "@abi-software/map-utilities"
55
+ "@abi-software/map-utilities": "@abi-software/map-utilities",
56
+ "pinia": "pinia"
55
57
  },
56
58
  },
57
59
  },
@@ -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
+ })