@3cr/viewer-browser 0.0.4 → 0.0.6

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/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import {registerVersion} from "@3cr/sdk-browser";
2
2
  import {createApp} from "vue";
3
- import {registerPlugins} from "@/plugins";
3
+ import {registerPlugins} from "./src/plugins";
4
4
  import {App as BrowserViewer} from './src/main';
5
5
 
6
6
  let idSelectorLocal = ''
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@3cr/viewer-browser",
3
- "version": "0.0.4",
4
- "main": "./dist/3cr-viewer-browser.js",
5
- "module": "dist/3cr-viewer-browser.js",
3
+ "version": "0.0.6",
4
+ "main": "./dist/3cr-viewer-browser.umd.js",
5
+ "module": "dist/3cr-viewer-browser.umd.js",
6
6
  "homepage": "https://docs.3cr.singular.health",
7
7
  "repository": {
8
8
  "type": "git",
@@ -958,7 +958,6 @@ function handleOnPayload(interfaceSet: string | FrontEndInterfaces, actionSet: s
958
958
  .bordered-event-window:hover {
959
959
  position: absolute;
960
960
  border: 2px dashed rgb(0, 152, 253);
961
- //pointer-events: none;
962
961
  }
963
962
  .v-expansion-panel--active > .v-expansion-panel-header {
964
963
  min-height: 48px;
package/src/main.ts CHANGED
@@ -20,4 +20,6 @@ import './types/window.shim';
20
20
  // registerPlugins(app)
21
21
  export { App }
22
22
 
23
+ export default App;
24
+
23
25
  // app.mount('#app')
package/vite.config.mts CHANGED
@@ -39,11 +39,11 @@ export default defineConfig({
39
39
  // make sure to externalize deps that shouldn't be bundled
40
40
  // into your library
41
41
  external: [
42
- "vue",
43
- "vuetify",
44
- "vite/client",
45
- "vite-plugin-vue-layouts/client",
46
- "unplugin-vue-router/client"
42
+ // "vue",
43
+ // "vuetify",
44
+ // "vite/client",
45
+ // "vite-plugin-vue-layouts/client",
46
+ // "unplugin-vue-router/client"
47
47
  ],
48
48
  output: {
49
49
  // Provide global variables to use in the UMD build
@@ -51,6 +51,11 @@ export default defineConfig({
51
51
  globals: {
52
52
  vue: 'Vue',
53
53
  },
54
+ footer: `
55
+ for (const key of Object.keys(globalThis.moduleName)) {
56
+ globalThis[key] = globalThis.moduleName[key]
57
+ }
58
+ `
54
59
  },
55
60
  },
56
61