@morfira-dev/wysiwyg 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/dist/LICENSE +21 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/plugins/tables.css +1 -0
- package/dist/plugins/tables.d.ts +1 -0
- package/dist/plugins/tables.js +2 -0
- package/dist/react.d.ts +1 -0
- package/dist/react.js +2 -0
- package/dist/style.css +1 -0
- package/dist/svelte.d.ts +1 -0
- package/dist/svelte.js +2 -0
- package/dist/vue.d.ts +1 -0
- package/dist/vue.js +2 -0
- package/package.json +68 -3
- package/README.md +0 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Morfira contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Morfira contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@morfira-dev/wysiwyg-core';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--mw-table-cell-padding: 8px 12px;--mw-table-selection: #6658e826;--mw-table-menu-width: 220px}.mw-content table{display:table;table-layout:fixed;border-collapse:collapse;max-width:100%;margin:.75em 0;white-space:normal}.mw-content td,.mw-content th{min-width:40px;padding:var(--mw-table-cell-padding);border:1px solid var(--mw-border);vertical-align:top;position:relative}.mw-content td>p:last-child,.mw-content th>p:last-child{margin-bottom:0}.mw-content th{font-weight:600;background-color:var(--mw-hover)}.mw-content [data-mw-selected=true]:after{position:absolute;inset:0;background:var(--mw-table-selection);content:"";pointer-events:none;box-shadow:inset 0 0 0 1px var(--mw-accent)}.mw-table-menu{position:absolute;width:var(--mw-table-menu-width);max-width:100%;max-height:360px;overflow:auto;z-index:20;box-sizing:border-box;background:var(--mw-surface);color:var(--mw-text);border:1px solid var(--mw-border);border-radius:var(--mw-radius);padding:6px;box-shadow:0 8px 30px #0002}.mw-table-menu[hidden],.mw-table-resize[hidden]{display:none}.mw-table-menu button{display:block;width:100%;text-align:left;font:13px var(--mw-font);color:inherit;background:transparent;border:0;border-radius:4px;padding:8px 10px;cursor:pointer}.mw-table-menu button:hover,.mw-table-menu button:focus-visible{background:var(--mw-hover);outline-color:var(--mw-accent)}.mw-table-menu input[type=color]{margin:4px;width:36px;height:28px;cursor:pointer}.mw-table-resize{position:absolute;padding:0;border:0;width:6px;min-height:20px;z-index:5;cursor:col-resize;background:transparent;touch-action:none}.mw-table-resize:hover,.mw-table-resize:focus-visible{background:var(--mw-accent)}.mw-table-status{color:var(--mw-error, #b42318);font:13px var(--mw-font);padding:0 12px}.mw-table-status:not(:empty){padding-bottom:12px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@morfira-dev/wysiwyg-plugins/tables';
|
package/dist/react.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@morfira-dev/wysiwyg-react';
|
package/dist/react.js
ADDED
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--mw-font: Inter, ui-sans-serif, system-ui, sans-serif;--mw-font-size: 16px;--mw-line-height: 1.75;--mw-text: #263043;--mw-muted: #8490a1;--mw-surface: #ffffff;--mw-toolbar-bg: #fafbfc;--mw-border: #e4e8ef;--mw-accent: #6658e8;--mw-accent-soft: #eeebff;--mw-hover: #f0f2f7;--mw-radius: 12px;--mw-padding: 32px;--mw-min-height: 320px;--mw-button-size: 34px;--mw-focus-ring: 0 0 0 3px #6658e82b}.mw-editor{position:relative;font-family:var(--mw-font);color:var(--mw-text);background:var(--mw-surface);border:1px solid var(--mw-border);border-radius:var(--mw-radius);font-size:var(--mw-font-size)}.mw-editor:focus-within{border-color:var(--mw-accent);box-shadow:var(--mw-focus-ring)}.mw-content{position:relative;box-sizing:border-box;min-height:var(--mw-min-height);padding:var(--mw-padding);line-height:var(--mw-line-height);overflow-wrap:anywhere;white-space:pre-wrap;outline:none}.mw-content[data-empty=true]:before{position:absolute;left:var(--mw-padding);right:var(--mw-padding);pointer-events:none;content:attr(data-placeholder);color:var(--mw-muted)}.mw-content>*:first-child{margin-top:0}.mw-content p{margin:0 0 .65em}.mw-content h1,.mw-content h2,.mw-content h3{letter-spacing:-.025em;line-height:1.3;margin:.8em 0 .6em}.mw-content h1{font-size:2em}.mw-content h2{font-size:1.5em}.mw-content h3{font-size:1.25em}.mw-content a{color:var(--mw-accent);text-decoration:underline}.mw-content ul,.mw-content ol{margin:.65em 0;padding-left:1.5em}.mw-content ul{list-style:disc}.mw-content ol{list-style:decimal}.mw-content blockquote{margin:.65em 0;border-left:3px solid var(--mw-accent);padding-left:1em;color:var(--mw-muted)}.mw-content pre{white-space:pre-wrap}.mw-content pre,.mw-content code{background:var(--mw-hover);color:var(--mw-text);border-radius:6px;font-family:ui-monospace,monospace}.mw-content pre{padding:12px}.mw-content img{max-width:100%;height:auto}.mw-toolbar{display:flex;flex-wrap:wrap;gap:4px;padding:10px;border:1px solid var(--mw-border);border-radius:var(--mw-radius);background:var(--mw-toolbar-bg);margin-bottom:10px}.mw-toolbar button{display:inline-grid;place-items:center;min-width:var(--mw-button-size);height:var(--mw-button-size);border:0;border-radius:6px;background:transparent;color:var(--mw-text);font:600 15px var(--mw-font);cursor:pointer}.mw-toolbar button:hover{background:var(--mw-hover)}.mw-toolbar button[aria-pressed=true]{background:var(--mw-accent-soft);color:var(--mw-accent)}.mw-toolbar button:focus-visible{outline:2px solid var(--mw-accent);outline-offset:2px}.mw-toolbar button:disabled{opacity:.4;cursor:default}@media(prefers-reduced-motion:no-preference){.mw-toolbar button{transition:background .12s}}
|
package/dist/svelte.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@morfira-dev/wysiwyg-svelte';
|
package/dist/svelte.js
ADDED
package/dist/vue.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@morfira-dev/wysiwyg-vue';
|
package/dist/vue.js
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,71 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morfira-dev/wysiwyg",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"sideEffects": [
|
|
9
|
+
"**/*.css"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"./vue": {
|
|
18
|
+
"types": "./dist/vue.d.ts",
|
|
19
|
+
"import": "./dist/vue.js"
|
|
20
|
+
},
|
|
21
|
+
"./react": {
|
|
22
|
+
"types": "./dist/react.d.ts",
|
|
23
|
+
"import": "./dist/react.js"
|
|
24
|
+
},
|
|
25
|
+
"./svelte": {
|
|
26
|
+
"types": "./dist/svelte.d.ts",
|
|
27
|
+
"import": "./dist/svelte.js"
|
|
28
|
+
},
|
|
29
|
+
"./plugins/tables": {
|
|
30
|
+
"types": "./dist/plugins/tables.d.ts",
|
|
31
|
+
"import": "./dist/plugins/tables.js"
|
|
32
|
+
},
|
|
33
|
+
"./style.css": "./dist/style.css",
|
|
34
|
+
"./plugins/tables.css": "./dist/plugins/tables.css"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@morfira-dev/wysiwyg-core": "^0.2.0",
|
|
38
|
+
"@morfira-dev/wysiwyg-plugins": "^0.2.0",
|
|
39
|
+
"@morfira-dev/wysiwyg-vue": "^0.2.0",
|
|
40
|
+
"@morfira-dev/wysiwyg-react": "^0.2.0",
|
|
41
|
+
"@morfira-dev/wysiwyg-svelte": "^0.2.0"
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"vue": "^3.5.0",
|
|
45
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
46
|
+
"svelte": "^5.0.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependenciesMeta": {
|
|
49
|
+
"vue": {
|
|
50
|
+
"optional": true
|
|
51
|
+
},
|
|
52
|
+
"react": {
|
|
53
|
+
"optional": true
|
|
54
|
+
},
|
|
55
|
+
"svelte": {
|
|
56
|
+
"optional": true
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"repository": {
|
|
60
|
+
"type": "git",
|
|
61
|
+
"url": "git+https://github.com/morfira-dev/morfira-wysiwyg.git",
|
|
62
|
+
"directory": "packages/wysiwyg"
|
|
63
|
+
},
|
|
64
|
+
"homepage": "https://github.com/morfira-dev/morfira-wysiwyg#readme",
|
|
65
|
+
"bugs": {
|
|
66
|
+
"url": "https://github.com/morfira-dev/morfira-wysiwyg/issues"
|
|
67
|
+
},
|
|
68
|
+
"publishConfig": {
|
|
69
|
+
"access": "public"
|
|
70
|
+
}
|
|
6
71
|
}
|
package/README.md
DELETED