@live-change/peer-connection-frontend 0.8.35 → 0.8.36

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.
@@ -6,25 +6,15 @@ import {
6
6
 
7
7
  import { dbAdminRoutes } from "@live-change/db-admin"
8
8
 
9
- export function routes(config = {}) {
9
+ export function peerConnectionRoutes(config = {}) {
10
10
  const { prefix = '/', route = (r) => r } = config
11
11
  return [
12
12
 
13
- ...dbAdminRoutes({ prefix: '/_db', route: r => ({ ...r, meta: { ...r.meta, raw: true }}) }),
14
-
15
13
  route({
16
- name: 'debugger', path: prefix + '/debugger/:channelType/:channel', meta: { },
14
+ name: 'peer-connection:debugger', path: prefix + '/debugger/:channelType/:channel', meta: { },
17
15
  component: () => import("./components/Debugger.vue"),
18
16
  props: true
19
17
  }),
20
- route({
21
- name: 'testDebugger', path: prefix + '', meta: { },
22
- component: () => import("./components/Debugger.vue"),
23
- props: {
24
- channelType: 'example_Example',
25
- channel: 'one'
26
- }
27
- })
28
18
 
29
19
  ]
30
20
  }
@@ -42,7 +32,18 @@ export function createRouter(app, config) {
42
32
  // use appropriate history implementation for server/client
43
33
  // import.meta.env.SSR is injected by Vite.
44
34
  history: import.meta.env.SSR ? createMemoryHistory() : createWebHistory(),
45
- routes: routes(config)
35
+ routes: [
36
+ ...dbAdminRoutes({ prefix: '/_db', route: r => ({ ...r, meta: { ...r.meta, raw: true }}) }),
37
+ ...peerConnectionRoutes(config),
38
+ {
39
+ name: 'peer-connection:test-debugger', path: '/', meta: { },
40
+ component: () => import("./components/Debugger.vue"),
41
+ props: {
42
+ channelType: 'example_Example',
43
+ channel: 'one'
44
+ }
45
+ }
46
+ ]
46
47
  })
47
48
  router.beforeEach(async (to, from) => {
48
49
  if(to?.matched.find(m => m?.meta.signedIn)) {
package/index.js ADDED
@@ -0,0 +1,14 @@
1
+ import Debugger from './front/src/components/Debugger.vue'
2
+ import DeviceSelect from './front/src/components/DeviceSelect.vue'
3
+ import PermissionsDialog from './front/src/components/PermissionsDialog.vue'
4
+
5
+ export { Debugger, DeviceSelect, PermissionsDialog }
6
+
7
+ import { createPeer } from './front/src/components/Peer.js'
8
+ import { createPeerConnection } from './front/src/components/PeerConnection.js'
9
+ import { getUserMedia, getDisplayMedia, isUserMediaPermitted } from './front/src/components/userMedia.js'
10
+
11
+ export { createPeer, createPeerConnection, getUserMedia, getDisplayMedia, isUserMediaPermitted }
12
+
13
+ import { peerConnectionRoutes } from './front/src/router.js'
14
+ export { peerConnectionRoutes }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/peer-connection-frontend",
3
- "version": "0.8.35",
3
+ "version": "0.8.36",
4
4
  "scripts": {
5
5
  "memDev": "dotenvx run -- node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; dotenvx run -- node server/start.js localDev --enableSessions --initScript ./init.js",
@@ -22,19 +22,19 @@
22
22
  },
23
23
  "type": "module",
24
24
  "dependencies": {
25
- "@live-change/cli": "^0.8.35",
26
- "@live-change/dao": "^0.8.35",
27
- "@live-change/dao-vue3": "^0.8.35",
28
- "@live-change/dao-websocket": "^0.8.35",
29
- "@live-change/framework": "^0.8.35",
30
- "@live-change/password-authentication-service": "^0.8.35",
31
- "@live-change/secret-code-service": "^0.8.35",
32
- "@live-change/secret-link-service": "^0.8.35",
33
- "@live-change/session-service": "^0.8.35",
34
- "@live-change/user-frontend": "^0.8.35",
35
- "@live-change/user-service": "^0.8.35",
36
- "@live-change/vue3-components": "^0.8.35",
37
- "@live-change/vue3-ssr": "^0.8.35",
25
+ "@live-change/cli": "^0.8.36",
26
+ "@live-change/dao": "^0.8.36",
27
+ "@live-change/dao-vue3": "^0.8.36",
28
+ "@live-change/dao-websocket": "^0.8.36",
29
+ "@live-change/framework": "^0.8.36",
30
+ "@live-change/password-authentication-service": "^0.8.36",
31
+ "@live-change/secret-code-service": "^0.8.36",
32
+ "@live-change/secret-link-service": "^0.8.36",
33
+ "@live-change/session-service": "^0.8.36",
34
+ "@live-change/user-frontend": "^0.8.36",
35
+ "@live-change/user-service": "^0.8.36",
36
+ "@live-change/vue3-components": "^0.8.36",
37
+ "@live-change/vue3-ssr": "^0.8.36",
38
38
  "@vueuse/core": "^10.11.0",
39
39
  "codeceptjs-assert": "^0.0.5",
40
40
  "compression": "^1.7.4",
@@ -52,7 +52,7 @@
52
52
  "vue3-scroll-border": "0.1.6"
53
53
  },
54
54
  "devDependencies": {
55
- "@live-change/codeceptjs-helper": "^0.8.35",
55
+ "@live-change/codeceptjs-helper": "^0.8.36",
56
56
  "codeceptjs": "^3.5.12",
57
57
  "generate-password": "1.7.1",
58
58
  "playwright": "^1.41.2",
@@ -63,5 +63,5 @@
63
63
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
64
64
  "license": "BSD-3-Clause",
65
65
  "description": "",
66
- "gitHead": "90fbb746dc7270895daf17b437ca48c0b0a01c01"
66
+ "gitHead": "24694d1687f0ab2d6eb7edd95e5274428cfd44eb"
67
67
  }