@xuda.io/xuda-widget-plugin-xuda-drive 1.0.92 → 1.0.95

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/runtime.mjs CHANGED
@@ -1052,7 +1052,9 @@ async function viewer(fields2, e2) {
1052
1052
  }
1053
1053
  });
1054
1054
  app.use(Gt);
1055
- app.mount(`[widget-id='${containerId}']`);
1055
+ setTimeout(() => {
1056
+ app.mount(`[widget-id='${containerId}']`);
1057
+ }, 1e3);
1056
1058
  }
1057
1059
  export {
1058
1060
  upload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xuda.io/xuda-widget-plugin-xuda-drive",
3
- "version": "1.0.92",
3
+ "version": "1.0.95",
4
4
  "description": "Xuda Drive widget plugin",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public",
package/src/runtime.mjs CHANGED
@@ -1266,9 +1266,9 @@ export async function viewer(fields, e) {
1266
1266
 
1267
1267
  app.use(FloatingVue);
1268
1268
 
1269
- // setTimeout(() => {
1270
- // // debugger;
1271
- // // debugger;
1272
- app.mount(`[widget-id='${containerId}']`);
1273
- // }, 1000);
1269
+ setTimeout(() => {
1270
+ // // debugger;
1271
+ // // debugger;
1272
+ app.mount(`[widget-id='${containerId}']`);
1273
+ }, 1000);
1274
1274
  }
package/vite.config.js CHANGED
@@ -34,7 +34,14 @@ export default {
34
34
  // Output files with meaningful names
35
35
  entryFileNames: "[name].mjs",
36
36
  chunkFileNames: "[name]-[hash].mjs",
37
- assetFileNames: "[name]-[hash][extname]"
37
+ // assetFileNames: "[name]-[hash][extname]"
38
+ assetFileNames: (assetInfo) => {
39
+ // Place all CSS in a single 'vendor.css' file
40
+ if (assetInfo.name && assetInfo.name.endsWith(".css")) {
41
+ return "vendor[extname]";
42
+ }
43
+ return "[name]-[hash][extname]";
44
+ }
38
45
  }
39
46
  },
40
47
  minify: false // Disable minification for easier debugging
File without changes