@live-change/wysiwyg-frontend 0.1.6 → 0.2.1

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/front/src/App.vue CHANGED
@@ -23,10 +23,16 @@
23
23
  })
24
24
 
25
25
  import { watch } from 'vue'
26
- import { client as useClient } from '@live-change/vue3-ssr'
26
+ import { client as useClient, useApi } from '@live-change/vue3-ssr'
27
27
  const client = useClient()
28
28
  watch(client, (newClient, oldClient) => {
29
29
  console.log("WATCH CLIENT", oldClient, '=>', newClient)
30
30
  })
31
31
 
32
+ const api = useApi()
33
+ import emailValidator from "@live-change/email-service/clientEmailValidator.js"
34
+ import passwordValidator from "@live-change/password-authentication-service/clientPasswordValidator.js"
35
+ api.validators.email = emailValidator
36
+ api.validators.password = passwordValidator
37
+
32
38
  </script>
@@ -164,6 +164,8 @@
164
164
  )
165
165
  onUnmounted(() => stepsReader.dispose())
166
166
  }
167
+
168
+ const schemaSpec = ref(getSchemaSpecFromConfig(props.config))
167
169
  </script>
168
170
 
169
171
  <style scoped>
@@ -1,5 +1,5 @@
1
1
  import { getSchema } from "@tiptap/core"
2
- import {getExtensions} from "./contentConfigExtensions";
2
+ import { getExtensions } from "./contentConfigExtensions";
3
3
 
4
4
  export function schemaTypesMapToObject(map) {
5
5
  let obj = {}
package/index.js CHANGED
@@ -0,0 +1,13 @@
1
+ import * as config from './front/src/contentConfig.js'
2
+ import * as extensions from './front/src/contentConfigExtensions.js'
3
+ export { config, extensions }
4
+
5
+ import ContentView from "./front/src/ContentView.js"
6
+ export { ContentView }
7
+
8
+ import DocumentEditor from "./front/src/DocumentEditor.vue"
9
+ import Editor from "./front/src/Editor.vue"
10
+ import EditorMenu from "./front/src/EditorMenu.vue"
11
+ import ImageComponent from "./front/src/ImageComponent.vue"
12
+ import ImageNode from "./front/src/ImageNode.js"
13
+ export { DocumentEditor, Editor, EditorMenu, ImageComponent, ImageNode }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/wysiwyg-frontend",
3
- "version": "0.1.6",
3
+ "version": "0.2.1",
4
4
  "scripts": {
5
5
  "memDev": "lcli memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; lcli localDev --enableSessions --initScript ./init.js",
@@ -21,18 +21,18 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@fortawesome/fontawesome-free": "^6.1.1",
24
- "@live-change/cli": "0.6.12",
25
- "@live-change/dao": "0.5.4",
26
- "@live-change/dao-vue3": "0.5.4",
27
- "@live-change/dao-websocket": "0.5.4",
28
- "@live-change/framework": "0.6.12",
29
- "@live-change/password-authentication-service": "0.2.49",
30
- "@live-change/prosemirror-service": "0.2.49",
31
- "@live-change/secret-code-service": "0.2.49",
32
- "@live-change/secret-link-service": "0.2.49",
33
- "@live-change/session-service": "0.2.49",
34
- "@live-change/vue3-components": "0.2.14",
35
- "@live-change/vue3-ssr": "0.2.14",
24
+ "@live-change/cli": "0.6.14",
25
+ "@live-change/dao": "0.5.6",
26
+ "@live-change/dao-vue3": "0.5.6",
27
+ "@live-change/dao-websocket": "0.5.6",
28
+ "@live-change/framework": "0.6.14",
29
+ "@live-change/password-authentication-service": "0.2.51",
30
+ "@live-change/prosemirror-service": "0.2.51",
31
+ "@live-change/secret-code-service": "0.2.51",
32
+ "@live-change/secret-link-service": "0.2.51",
33
+ "@live-change/session-service": "0.2.51",
34
+ "@live-change/vue3-components": "0.2.15",
35
+ "@live-change/vue3-ssr": "0.2.15",
36
36
  "@tiptap/extension-blockquote": "^2.0.0-beta.29",
37
37
  "@tiptap/extension-bold": "^2.0.0-beta.28",
38
38
  "@tiptap/extension-bullet-list": "^2.0.0-beta.29",
@@ -73,7 +73,7 @@
73
73
  "vue3-scroll-border": "0.1.2"
74
74
  },
75
75
  "devDependencies": {
76
- "@live-change/codeceptjs-helper": "0.6.12",
76
+ "@live-change/codeceptjs-helper": "0.6.14",
77
77
  "@wdio/selenium-standalone-service": "^7.20.8",
78
78
  "codeceptjs": "^3.3.4",
79
79
  "generate-password": "1.7.0",
@@ -85,5 +85,5 @@
85
85
  "author": "",
86
86
  "license": "ISC",
87
87
  "description": "",
88
- "gitHead": "4a0231098fcfea3c1e32aa29e8f232e43981ee7f"
88
+ "gitHead": "faf73f4f20fcd3d3f13289730f8ec7057b3433e8"
89
89
  }