@xuda.io/xuda-widget-plugin-xuda-drive 1.0.64 → 1.0.65

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": "@xuda.io/xuda-widget-plugin-xuda-drive",
3
- "version": "1.0.64",
3
+ "version": "1.0.65",
4
4
  "description": "Xuda Drive widget plugin",
5
5
  "scripts": {
6
6
  "pub": "npm version patch --force && npm publish --access public"
package/runtime.mjs CHANGED
@@ -24,107 +24,6 @@ export async function upload(fields, e) {
24
24
 
25
25
  var widget_cssClass = fields.widget_cssClass;
26
26
 
27
- // await func.utils.load_js_on_demand(
28
- // func.common.get_url(
29
- // e.SESSION_ID,
30
- // "dist",
31
- // "runtime/node_modules/filepond/dist/filepond.js"
32
- // )
33
- // );
34
-
35
- // await func.utils.load_js_on_demand(
36
- // func.common.get_url(
37
- // e.SESSION_ID,
38
- // "dist",
39
- // "runtime/node_modules/jquery-filepond/filepond.jquery.js"
40
- // )
41
- // );
42
-
43
- // await func.utils.load_js_on_demand(
44
- // func.common.get_url(
45
- // e.SESSION_ID,
46
- // "dist",
47
- // "runtime/node_modules/@xuda.io/pintura/filepond-plugin-image-editor/FilePondPluginImageEditor.js"
48
- // )
49
- // );
50
-
51
- // await func.utils.load_js_on_demand(
52
- // func.common.get_url(
53
- // e.SESSION_ID,
54
- // "dist",
55
- // "runtime/node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.min.js"
56
- // )
57
- // );
58
-
59
- // await func.utils.load_js_on_demand(
60
- // func.common.get_url(
61
- // e.SESSION_ID,
62
- // "dist",
63
- // "runtime/node_modules/@xuda.io/pintura/pintura/pintura-iife.js"
64
- // )
65
- // );
66
-
67
- // await func.utils.load_js_on_demand(
68
- // func.common.get_url(
69
- // e.SESSION_ID,
70
- // "dist",
71
- // "runtime/node_modules/filepond-plugin-file-poster/dist/filepond-plugin-file-poster.min.js"
72
- // )
73
- // );
74
-
75
- // await func.utils.load_js_on_demand(
76
- // func.common.get_url(
77
- // e.SESSION_ID,
78
- // "dist",
79
- // "runtime/node_modules/filepond-plugin-media-preview/dist/filepond-plugin-media-preview.min.js"
80
- // )
81
- // );
82
-
83
- // await func.utils.load_js_on_demand(
84
- // func.common.get_url(
85
- // e.SESSION_ID,
86
- // "dist",
87
- // "runtime/node_modules/filepond-plugin-file-validate-type/dist/filepond-plugin-file-validate-type.min.js"
88
- // )
89
- // );
90
-
91
- // await func.utils.load_css_on_demand(
92
- // func.common.get_url(
93
- // e.SESSION_ID,
94
- // "dist",
95
- // "runtime/node_modules/filepond/dist/filepond.css"
96
- // )
97
- // );
98
-
99
- // func.utils.load_css_on_demand(
100
- // func.common.get_url(
101
- // e.SESSION_ID,
102
- // "dist",
103
- // "runtime/node_modules/@xuda.io/pintura/pintura/pintura.css"
104
- // )
105
- // );
106
- // func.utils.load_css_on_demand(
107
- // func.common.get_url(
108
- // e.SESSION_ID,
109
- // "dist",
110
- // "runtime/node_modules/filepond-plugin-image-preview/dist/filepond-plugin-image-preview.css"
111
- // )
112
- // );
113
- // func.utils.load_css_on_demand(
114
- // func.common.get_url(
115
- // e.SESSION_ID,
116
- // "dist",
117
- // "runtime/node_modules/filepond-plugin-media-preview/dist/filepond-plugin-media-preview.min.css"
118
- // )
119
- // );
120
- // func.utils.load_css_on_demand(
121
- // func.common.get_url(
122
- // e.SESSION_ID,
123
- // "dist",
124
- // "runtime/node_modules/filepond-plugin-file-poster/dist/filepond-plugin-file-poster.min.css"
125
- // )
126
- // );
127
-
128
27
  var pond = undefined;
129
28
 
130
29
  var init_files_fn = (files) => {
@@ -572,41 +471,58 @@ export async function upload(fields, e) {
572
471
  export async function viewer(fields, e) {
573
472
  const { app_id, gtp_token, app_token } = e._session;
574
473
 
575
- await func.utils.load_js_on_demand(
576
- "https://cdn.tailwindcss.com?plugins=forms"
577
- );
578
-
579
- await func.utils.load_js_on_demand(
580
- "https://cdn.jsdelivr.net/npm/vue@3.5.6/dist/vue.global.js"
581
- );
582
-
583
- await func.utils.load_js_on_demand(
584
- "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js"
585
- );
586
-
587
- await func.utils.load_js_on_demand(
588
- "https://unpkg.com/swiper/swiper-bundle.min.js"
589
- );
590
- await func.utils.load_css_on_demand(
591
- "https://unpkg.com/swiper/swiper-bundle.min.css"
592
- );
593
-
594
- await func.utils.load_js_on_demand("https://unpkg.com/@vueuse/shared");
595
- await func.utils.load_js_on_demand("https://unpkg.com/@vueuse/core");
596
- await func.utils.load_js_on_demand(
597
- "https://unpkg.com/@floating-ui/core@1.1.1"
598
- );
599
- await func.utils.load_js_on_demand(
600
- "https://unpkg.com/@floating-ui/dom@1.1.1"
601
- );
602
- await func.utils.load_js_on_demand(
603
- "https://unpkg.com/floating-vue@5.2.2/dist/floating-vue.umd.js"
604
- );
605
- await func.utils.load_css_on_demand(
606
- "https://unpkg.com/floating-vue@^5.2.2/dist/style.css"
607
- );
608
-
609
- var fs = import("./fs-lightbox.js");
474
+ // await func.utils.load_js_on_demand(
475
+ // "https://cdn.tailwindcss.com?plugins=forms"
476
+ // );
477
+
478
+ // await func.utils.load_js_on_demand(
479
+ // "https://cdn.jsdelivr.net/npm/vue@3.5.6/dist/vue.global.js"
480
+ // );
481
+
482
+ // await func.utils.load_js_on_demand(
483
+ // "https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.30.1/moment.min.js"
484
+ // );
485
+
486
+ // await func.utils.load_js_on_demand(
487
+ // "https://unpkg.com/swiper/swiper-bundle.min.js"
488
+ // );
489
+
490
+ await import("./tailwind.cdn.js");
491
+ await import("./vue.global.3.5.6.js");
492
+ await import("./moment.min.2.30.1.js");
493
+ await import("./swiper-bundle.min.11.1.14.js");
494
+ await import("./vueusee/shared.js");
495
+ await import("./vueusee/core.js");
496
+ await import("./floating-ui/core@1.1.1.js");
497
+ await import("./floating-ui/dom@1.1.1.js");
498
+ await import("./floating-vue@5.2.2/floating-vue.umd.js");
499
+
500
+ await func.utils.load_css_on_demand("./swiper-bundle.min.11.1.14.css");
501
+
502
+ // await func.utils.load_css_on_demand(
503
+ // "https://unpkg.com/swiper/swiper-bundle.min.css"
504
+ // );
505
+
506
+ // await func.utils.load_js_on_demand("https://unpkg.com/@vueuse/shared");
507
+ // await func.utils.load_js_on_demand("https://unpkg.com/@vueuse/core");
508
+
509
+ // await func.utils.load_js_on_demand(
510
+ // "https://unpkg.com/@floating-ui/core@1.1.1"
511
+ // );
512
+ // await func.utils.load_js_on_demand(
513
+ // "https://unpkg.com/@floating-ui/dom@1.1.1"
514
+ // );
515
+
516
+ // await func.utils.load_js_on_demand(
517
+ // "https://unpkg.com/floating-vue@5.2.2/dist/floating-vue.umd.js"
518
+ // );
519
+ // await func.utils.load_css_on_demand(
520
+ // "https://unpkg.com/floating-vue@^5.2.2/dist/style.css"
521
+ // );
522
+
523
+ await func.utils.load_css_on_demand("./floating-vue@5.2.2/style.css");
524
+
525
+ var fs = await import("./fs-lightbox.js");
610
526
 
611
527
  const { createApp, ref } = Vue;
612
528