@things-factory/reference-app 6.0.21 → 6.0.22

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.
@@ -1,10 +1,5 @@
1
1
  import { css, html } from 'lit'
2
2
  import { connect } from 'pwa-helpers/connect-mixin.js'
3
- import React from 'react'
4
- import ReactDOM from 'react-dom/client'
5
-
6
- // import { EditorLexical } from '../components/editor-lexical'
7
- import { LexicalEditor } from '../components/editor-lexical'
8
3
 
9
4
  import { PageView, store } from '@things-factory/shell'
10
5
 
@@ -16,32 +11,9 @@ class WebEditorLexicalPage extends connect(store)(PageView) {
16
11
  display: flex;
17
12
  }
18
13
 
19
- :host > * {
14
+ #editor {
20
15
  flex: 1;
21
16
  }
22
-
23
- .ltr {
24
- text-align: left;
25
- }
26
-
27
- .rtl {
28
- text-align: right;
29
- }
30
-
31
- .editor-placeholder {
32
- color: #999;
33
- overflow: hidden;
34
- position: absolute;
35
- top: 15px;
36
- left: 15px;
37
- user-select: none;
38
- pointer-events: none;
39
- }
40
-
41
- .editor-paragraph {
42
- margin: 0 0 15px 0;
43
- position: relative;
44
- }
45
17
  `
46
18
  ]
47
19
  }
@@ -54,94 +26,24 @@ class WebEditorLexicalPage extends connect(store)(PageView) {
54
26
 
55
27
  constructor() {
56
28
  super()
29
+ this.text = '<p><i>Welcome to the Lexical Editor example!</i></p>'
30
+ }
31
+
32
+ firstUpdated() {
33
+ var iframe = this.renderRoot.querySelector('iframe')
57
34
 
58
- this.text = '<p><i>Welcome to the Lexical Text Editor example!</i></p>'
35
+ iframe.addEventListener('load', e => {
36
+ /* TODO I haven't found a way to integrate it with a lexical editor yet. */
37
+ iframe.contentDocument.addEventListener('change', this.onChangeEventHandler.bind(this))
38
+ })
59
39
  }
60
40
 
61
- render() {
62
- return html``
41
+ onChangeEventHandler(e) {
42
+ console.log('changed', e.detail)
63
43
  }
64
44
 
65
- firstUpdated() {
66
- ReactDOM.createRoot(this.renderRoot).render(
67
- React.createElement(LexicalEditor, {
68
- config: {
69
- namespace: 'MyEditor',
70
- theme: {
71
- ltr: 'ltr',
72
- rtl: 'rtl',
73
- placeholder: 'editor-placeholder',
74
- paragraph: 'editor-paragraph',
75
- quote: 'editor-quote',
76
- heading: {
77
- h1: 'editor-heading-h1',
78
- h2: 'editor-heading-h2',
79
- h3: 'editor-heading-h3',
80
- h4: 'editor-heading-h4',
81
- h5: 'editor-heading-h5',
82
- h6: 'editor-heading-h6'
83
- },
84
- list: {
85
- nested: {
86
- listitem: 'editor-nested-listitem'
87
- },
88
- ol: 'editor-list-ol',
89
- ul: 'editor-list-ul',
90
- listitem: 'editor-listItem',
91
- listitemChecked: 'editor-listItemChecked',
92
- listitemUnchecked: 'editor-listItemUnchecked'
93
- },
94
- hashtag: 'editor-hashtag',
95
- image: 'editor-image',
96
- link: 'editor-link',
97
- text: {
98
- bold: 'editor-textBold',
99
- code: 'editor-textCode',
100
- italic: 'editor-textItalic',
101
- strikethrough: 'editor-textStrikethrough',
102
- subscript: 'editor-textSubscript',
103
- superscript: 'editor-textSuperscript',
104
- underline: 'editor-textUnderline',
105
- underlineStrikethrough: 'editor-textUnderlineStrikethrough'
106
- },
107
- code: 'editor-code',
108
- codeHighlight: {
109
- atrule: 'editor-tokenAttr',
110
- attr: 'editor-tokenAttr',
111
- boolean: 'editor-tokenProperty',
112
- builtin: 'editor-tokenSelector',
113
- cdata: 'editor-tokenComment',
114
- char: 'editor-tokenSelector',
115
- class: 'editor-tokenFunction',
116
- 'class-name': 'editor-tokenFunction',
117
- comment: 'editor-tokenComment',
118
- constant: 'editor-tokenProperty',
119
- deleted: 'editor-tokenProperty',
120
- doctype: 'editor-tokenComment',
121
- entity: 'editor-tokenOperator',
122
- function: 'editor-tokenFunction',
123
- important: 'editor-tokenVariable',
124
- inserted: 'editor-tokenSelector',
125
- keyword: 'editor-tokenAttr',
126
- namespace: 'editor-tokenVariable',
127
- number: 'editor-tokenProperty',
128
- operator: 'editor-tokenOperator',
129
- prolog: 'editor-tokenComment',
130
- property: 'editor-tokenProperty',
131
- punctuation: 'editor-tokenPunctuation',
132
- regex: 'editor-tokenVariable',
133
- selector: 'editor-tokenSelector',
134
- string: 'editor-tokenSelector',
135
- symbol: 'editor-tokenProperty',
136
- tag: 'editor-tokenProperty',
137
- url: 'editor-tokenOperator',
138
- variable: 'editor-tokenVariable'
139
- }
140
- },
141
- onError: console.error
142
- }
143
- })
144
- )
45
+ render() {
46
+ return html` <iframe id="editor" frameborder="0" scrolling="no" src="/public/html-editor-lexical"></iframe> `
145
47
  }
146
48
 
147
49
  stateChanged(state) {}
@@ -5,7 +5,7 @@ import { connect } from 'pwa-helpers/connect-mixin.js'
5
5
 
6
6
  import { PageView, store } from '@things-factory/shell'
7
7
 
8
- class WebEditorPage extends connect(store)(PageView) {
8
+ class WebEditorTinyMCEPage extends connect(store)(PageView) {
9
9
  static get styles() {
10
10
  return [
11
11
  css`
package/db.sqlite CHANGED
Binary file
@@ -6,24 +6,49 @@
6
6
  "auditLog": "logs/.08636eb59927f12972f6774f5947c8507b3564c2-audit.json",
7
7
  "files": [
8
8
  {
9
- "date": 1678703028127,
10
- "name": "logs/application-2023-03-13-19.log",
11
- "hash": "8487339ebf18a8b6e1197e7c4449dac9a361c5e1861e59766e473a8001c2dcc2"
9
+ "date": 1679212727018,
10
+ "name": "logs/application-2023-03-19-16.log",
11
+ "hash": "5aab852b805a77c3a1911edd4b1cbb458f0486522025afc622b170ffedb4cd06"
12
12
  },
13
13
  {
14
- "date": 1678703029585,
15
- "name": "logs/application-2023-03-13-10.log",
16
- "hash": "77ecf7f853e88c18b3115633790ef43022fe0e5f90a6f66721fd369bd403aed6"
14
+ "date": 1679212729168,
15
+ "name": "logs/application-2023-03-19-07.log",
16
+ "hash": "c804af0e36dbb3a06e343cb2b5107f23c6ea447a23065f4383c4f214867e9246"
17
17
  },
18
18
  {
19
- "date": 1678707300848,
20
- "name": "logs/application-2023-03-13-20.log",
21
- "hash": "32cf32c0aaed436862c6767afba4797127238ad082ca7458ce0e9b697dedea27"
19
+ "date": 1679213670508,
20
+ "name": "logs/application-2023-03-19-08.log",
21
+ "hash": "9238b0ea02c7bb452e898e2b673343e5cad924a41ddd90f99404606de33f7ff5"
22
22
  },
23
23
  {
24
- "date": 1678707302213,
25
- "name": "logs/application-2023-03-13-11.log",
26
- "hash": "b0a0efc7a242d4baaac18d554fabe2575a7899cf1e18d68069069ac56f1fee9e"
24
+ "date": 1679223382337,
25
+ "name": "logs/application-2023-03-19-19.log",
26
+ "hash": "2b883085dd371da464b50b495432cc79bbc71746a34f4d141f7a4e8b1e1c5c96"
27
+ },
28
+ {
29
+ "date": 1679223383702,
30
+ "name": "logs/application-2023-03-19-10.log",
31
+ "hash": "0ba4319b87b955bb617a4d75de96911b06340f859f365cd7c1937ca48c4c30f7"
32
+ },
33
+ {
34
+ "date": 1679223669808,
35
+ "name": "logs/application-2023-03-19-20.log",
36
+ "hash": "0b020b8e16079fcec3bacaa75995793be3d0520b84ddf16c0cab7b04a5fcbd4f"
37
+ },
38
+ {
39
+ "date": 1679223671064,
40
+ "name": "logs/application-2023-03-19-11.log",
41
+ "hash": "8509ee7bd8c19764e40082240191199b3ef5f7f6c4a9ca3382d8824e22113f33"
42
+ },
43
+ {
44
+ "date": 1679229032267,
45
+ "name": "logs/application-2023-03-19-21.log",
46
+ "hash": "b5ba15d63c27bda4a26238869c4dd0a85e37b28f262815a6b93c1d4d7f8b5a56"
47
+ },
48
+ {
49
+ "date": 1679229034042,
50
+ "name": "logs/application-2023-03-19-12.log",
51
+ "hash": "98debdd1d514c2303cf755d51c62a895d37e9008b0c85260a2a5dc312db3fd06"
27
52
  }
28
53
  ],
29
54
  "hashType": "sha256"
@@ -14,6 +14,26 @@
14
14
  "date": 1678707302053,
15
15
  "name": "logs/connections-2023-03-13-11.log",
16
16
  "hash": "c05ce349d6d8c000f24e286b138bb44645a6011ca8b389d3bf6d0204b2c52b81"
17
+ },
18
+ {
19
+ "date": 1679212728979,
20
+ "name": "logs/connections-2023-03-19-07.log",
21
+ "hash": "717ef0f796cf8fa5b83a31d9863d3dd4d76b90cfbcdc211425067d63e2ab0ea0"
22
+ },
23
+ {
24
+ "date": 1679223383542,
25
+ "name": "logs/connections-2023-03-19-10.log",
26
+ "hash": "b5c549067c780929a49182ba686861342a2f9616ef99db5d966fd80d6789b2c3"
27
+ },
28
+ {
29
+ "date": 1679223670936,
30
+ "name": "logs/connections-2023-03-19-11.log",
31
+ "hash": "8efbc75c8134411a8ab36e17214ea3697bd7e8609887c16776aeb1f42b2d85cc"
32
+ },
33
+ {
34
+ "date": 1679229033923,
35
+ "name": "logs/connections-2023-03-19-12.log",
36
+ "hash": "cc46b681ff4030928502d195c3e9adcc971968de486e4be355ff11279ae923c1"
17
37
  }
18
38
  ],
19
39
  "hashType": "sha256"
@@ -0,0 +1,11 @@
1
+ 2023-03-19T16:58:49+09:00 error: oracledb module loading failed
2
+ 2023-03-19T16:58:50+09:00 info: Default DataSource established
3
+ 2023-03-19T16:58:50+09:00 info: Transaction DataSource established
4
+ 2023-03-19T16:59:15+09:00 error: oracledb module loading failed
5
+ 2023-03-19T16:59:16+09:00 info: Default DataSource established
6
+ 2023-03-19T16:59:16+09:00 info: Transaction DataSource established
7
+ 2023-03-19T16:59:36+09:00 error: oracledb module loading failed
8
+ 2023-03-19T16:59:36+09:00 info: Default DataSource established
9
+ 2023-03-19T16:59:36+09:00 info: Transaction DataSource established
10
+ 2023-03-19T16:59:37+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
11
+ 2023-03-19T16:59:37+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
@@ -0,0 +1,4 @@
1
+ 2023-03-19T17:14:30+09:00 error: Cannot query field "boardPermissions" on type "Query".
2
+ 2023-03-19T17:14:30+09:00 error: Cannot query field "myFavorites" on type "Query".
3
+ 2023-03-19T17:14:38+09:00 error: Cannot query field "boardPermissions" on type "Query".
4
+ 2023-03-19T17:14:38+09:00 error: Cannot query field "myFavorites" on type "Query".
@@ -0,0 +1,5 @@
1
+ 2023-03-19T19:56:23+09:00 error: oracledb module loading failed
2
+ 2023-03-19T19:56:24+09:00 info: Default DataSource established
3
+ 2023-03-19T19:56:24+09:00 info: Transaction DataSource established
4
+ 2023-03-19T19:56:25+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
5
+ 2023-03-19T19:56:25+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
@@ -0,0 +1,10 @@
1
+ 2023-03-19T20:01:11+09:00 error: oracledb module loading failed
2
+ 2023-03-19T20:01:11+09:00 info: Default DataSource established
3
+ 2023-03-19T20:01:12+09:00 info: Transaction DataSource established
4
+ 2023-03-19T20:01:12+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
5
+ 2023-03-19T20:01:12+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
6
+ 2023-03-19T20:03:36+09:00 error: oracledb module loading failed
7
+ 2023-03-19T20:03:37+09:00 info: Default DataSource established
8
+ 2023-03-19T20:03:37+09:00 info: Transaction DataSource established
9
+ 2023-03-19T20:03:38+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
10
+ 2023-03-19T20:03:38+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
@@ -0,0 +1,5 @@
1
+ 2023-03-19T21:30:34+09:00 error: oracledb module loading failed
2
+ 2023-03-19T21:30:34+09:00 info: Default DataSource established
3
+ 2023-03-19T21:30:34+09:00 info: Transaction DataSource established
4
+ 2023-03-19T21:30:35+09:00 info: 🚀 Server ready at http://0.0.0.0:3000/graphql
5
+ 2023-03-19T21:30:35+09:00 info: 🚀 Subscriptions ready at ws://0.0.0.0:3000/graphql
@@ -0,0 +1,3 @@
1
+ 2023-03-19T16:58:47+09:00 info: File Storage is Ready.
2
+ 2023-03-19T16:59:15+09:00 info: File Storage is Ready.
3
+ 2023-03-19T16:59:35+09:00 info: File Storage is Ready.
@@ -0,0 +1 @@
1
+ 2023-03-19T19:56:23+09:00 info: File Storage is Ready.
@@ -0,0 +1,2 @@
1
+ 2023-03-19T20:01:10+09:00 info: File Storage is Ready.
2
+ 2023-03-19T20:03:36+09:00 info: File Storage is Ready.
@@ -0,0 +1 @@
1
+ 2023-03-19T21:30:32+09:00 info: File Storage is Ready.
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/reference-app",
3
- "version": "6.0.21",
3
+ "version": "6.0.22",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "client/index.js",
6
6
  "things-factory": true,
@@ -82,6 +82,7 @@
82
82
  "@things-factory/grist-ui": "^6.0.21",
83
83
  "@things-factory/help": "^6.0.21",
84
84
  "@things-factory/integration-ui": "^6.0.21",
85
+ "@things-factory/lexical-editor": "^6.0.22",
85
86
  "@things-factory/lite-menu": "^6.0.21",
86
87
  "@things-factory/more-ui": "^6.0.21",
87
88
  "@things-factory/notification": "^6.0.21",
@@ -98,11 +99,10 @@
98
99
  "@things-factory/system-ui": "^6.0.21",
99
100
  "@things-factory/work-shift": "^6.0.21",
100
101
  "@tinymce/tinymce-webcomponent": "^2.0.1",
101
- "lexical": "^0.9.0",
102
102
  "random-words": "^1.2.0"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@things-factory/builder": "^6.0.21"
106
106
  },
107
- "gitHead": "074a4f460d08fed4bc7e9882aa57f4c120cf0f11"
107
+ "gitHead": "a2a42f609dc97b57602d49716201fab337268f68"
108
108
  }