uncial 0.0.7 → 2.0.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/README.md +82 -15
- package/dist/core/attributes.d.ts +21 -3
- package/dist/core/attributes.js +86 -15
- package/dist/core/defineBlock.js +26 -12
- package/dist/core/index.d.ts +3 -1
- package/dist/core/index.js +2 -1
- package/dist/core/issues.d.ts +7 -0
- package/dist/core/issues.js +9 -0
- package/dist/core/meta.js +2 -7
- package/dist/core/migrations.d.ts +30 -0
- package/dist/core/migrations.js +50 -0
- package/dist/core/normalize.d.ts +12 -1
- package/dist/core/normalize.js +123 -22
- package/dist/core/registry.d.ts +7 -0
- package/dist/core/registry.js +35 -4
- package/dist/core/runtime.d.ts +7 -0
- package/dist/core/types.d.ts +31 -3
- package/dist/core/validate.js +27 -7
- package/dist/editor/AttributeFieldControl.svelte +155 -7
- package/dist/editor/AttributeFieldControl.svelte.d.ts +1 -0
- package/dist/editor/BlockAttributesPanel.svelte +76 -44
- package/dist/editor/BlockAttributesPanel.svelte.d.ts +9 -1
- package/dist/editor/Editor.svelte +149 -27
- package/dist/editor/Editor.svelte.d.ts +37 -0
- package/dist/editor/RichTextAttributeEditor.svelte +75 -145
- package/dist/editor/RichTextAttributeEditor.svelte.d.ts +2 -1
- package/dist/editor/Toolbar.svelte +2 -3
- package/dist/editor/attributeTargets.d.ts +23 -0
- package/dist/editor/attributeTargets.js +21 -0
- package/dist/editor/attributesController.d.ts +12 -0
- package/dist/editor/attributesController.js +142 -230
- package/dist/editor/bindEditor.d.ts +7 -0
- package/dist/editor/bindEditor.js +141 -27
- package/dist/editor/chooseAttribute.d.ts +26 -0
- package/dist/editor/chooseAttribute.js +10 -0
- package/dist/editor/containerChildOps.d.ts +33 -0
- package/dist/editor/containerChildOps.js +115 -0
- package/dist/editor/dropdownDismiss.d.ts +18 -0
- package/dist/editor/dropdownDismiss.js +46 -0
- package/dist/editor/dropdownFloat.d.ts +16 -0
- package/dist/editor/dropdownFloat.js +127 -0
- package/dist/editor/index.d.ts +3 -1
- package/dist/editor/index.js +2 -1
- package/dist/editor/linkController.d.ts +19 -0
- package/dist/editor/linkController.js +72 -0
- package/dist/editor/toolbarFeatures.d.ts +12 -0
- package/dist/editor/toolbarFeatures.js +36 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/render/Renderer.svelte +1 -1
- package/dist/render/RichContent.svelte +12 -4
- package/dist/render/RichContent.svelte.d.ts +2 -0
- package/dist/render/RichNode.svelte +80 -10
- package/dist/render/RichNode.svelte.d.ts +2 -0
- package/dist/render/Tab.svelte +27 -0
- package/dist/render/Tab.svelte.d.ts +10 -0
- package/dist/render/Tabs.svelte +57 -0
- package/dist/render/Tabs.svelte.d.ts +10 -0
- package/dist/render/index.d.ts +3 -0
- package/dist/render/index.js +6 -0
- package/dist/render/sanitize.d.ts +6 -0
- package/dist/render/sanitize.js +20 -1
- package/dist/render/tabSelection.svelte.d.ts +8 -0
- package/dist/render/tabSelection.svelte.js +40 -0
- package/dist/runtime/reactiveProps.svelte.d.ts +16 -0
- package/dist/runtime/reactiveProps.svelte.js +16 -0
- package/dist/runtime/svelte.d.ts +2 -1
- package/dist/runtime/svelte.js +26 -6
- package/dist/shared/EditorBlockFixture.svelte +24 -0
- package/dist/shared/EditorBlockFixture.svelte.d.ts +9 -0
- package/dist/shared/content.js +2 -1
- package/dist/shared/documentIdentity.d.ts +6 -0
- package/dist/shared/documentIdentity.js +64 -0
- package/dist/shared/guards.d.ts +13 -0
- package/dist/shared/guards.js +16 -0
- package/dist/shared/richText.js +20 -4
- package/dist/shared/runtimeId.d.ts +8 -0
- package/dist/shared/runtimeId.js +8 -0
- package/dist/shared/syntaxHighlight.d.ts +14 -0
- package/dist/shared/syntaxHighlight.js +36 -3
- package/dist/shared/tiptap.js +140 -27
- package/dist/styles/base.css +177 -0
- package/dist/styles/prose.css +26 -0
- package/dist/styles/tokens.css +53 -69
- package/dist/tabs.d.ts +6 -0
- package/dist/tabs.js +36 -0
- package/dist/web-components/UncialEditor.svelte +23 -7
- package/dist/web-components/UncialEditor.svelte.d.ts +7 -2
- package/dist/web-components/index.d.ts +45 -10
- package/dist/web-components/index.js +98 -36
- package/dist/web-components/reactiveProps.svelte.d.ts +10 -0
- package/dist/web-components/reactiveProps.svelte.js +13 -0
- package/package.json +134 -133
|
@@ -1,38 +1,88 @@
|
|
|
1
1
|
import UncialEditor from './UncialEditor.svelte';
|
|
2
2
|
import UncialRenderer from './UncialRenderer.svelte';
|
|
3
3
|
import { mount, unmount } from 'svelte';
|
|
4
|
+
import { reactiveProps } from './reactiveProps.svelte.js';
|
|
4
5
|
const BrowserHTMLElement = globalThis.HTMLElement ?? class {
|
|
5
6
|
};
|
|
7
|
+
const STYLESHEET_ATTRIBUTE = 'stylesheet';
|
|
6
8
|
class UncialElement extends BrowserHTMLElement {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
static observedAttributes = [STYLESHEET_ATTRIBUTE];
|
|
10
|
+
/**
|
|
11
|
+
* `$state`-backed props shared with the mounted Svelte component. Mutating
|
|
12
|
+
* this object updates the component in place; the component is mounted once
|
|
13
|
+
* per connection instead of being destroyed and recreated per property set.
|
|
14
|
+
*/
|
|
15
|
+
props = reactiveProps({});
|
|
16
|
+
instance = null;
|
|
9
17
|
root = this.attachShadow({ mode: 'open' });
|
|
18
|
+
stylesheetLinks = [];
|
|
10
19
|
connectedCallback() {
|
|
11
|
-
this.
|
|
20
|
+
if (this.instance)
|
|
21
|
+
return;
|
|
22
|
+
this.instance = this.mountComponent(this.root);
|
|
12
23
|
}
|
|
13
24
|
disconnectedCallback() {
|
|
14
|
-
this.
|
|
25
|
+
if (!this.instance)
|
|
26
|
+
return;
|
|
27
|
+
void unmount(this.instance);
|
|
28
|
+
this.instance = null;
|
|
29
|
+
}
|
|
30
|
+
attributeChangedCallback(name, oldValue, newValue) {
|
|
31
|
+
if (name !== STYLESHEET_ATTRIBUTE || oldValue === newValue)
|
|
32
|
+
return;
|
|
33
|
+
this.renderStylesheetLinks(newValue);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* One or more whitespace-separated stylesheet URLs rendered as
|
|
37
|
+
* `<link rel="stylesheet">` elements inside the shadow root.
|
|
38
|
+
*/
|
|
39
|
+
get stylesheet() {
|
|
40
|
+
return this.getAttribute(STYLESHEET_ATTRIBUTE);
|
|
41
|
+
}
|
|
42
|
+
set stylesheet(value) {
|
|
43
|
+
if (value == null || value === '') {
|
|
44
|
+
this.removeAttribute(STYLESHEET_ATTRIBUTE);
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
this.setAttribute(STYLESHEET_ATTRIBUTE, value);
|
|
15
48
|
}
|
|
16
49
|
setProp(key, value) {
|
|
17
|
-
this.props
|
|
18
|
-
if (this.isConnected)
|
|
19
|
-
this.render();
|
|
50
|
+
this.props[key] = value;
|
|
20
51
|
}
|
|
21
52
|
emit(type, detail) {
|
|
22
53
|
this.dispatchEvent(new CustomEvent(type, { detail, bubbles: true, composed: true }));
|
|
23
54
|
}
|
|
24
|
-
|
|
25
|
-
this.
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
55
|
+
renderStylesheetLinks(value) {
|
|
56
|
+
for (const link of this.stylesheetLinks) {
|
|
57
|
+
link.remove();
|
|
58
|
+
}
|
|
59
|
+
const hrefs = (value ?? '').split(/\s+/).filter(Boolean);
|
|
60
|
+
this.stylesheetLinks = hrefs.map((href) => {
|
|
61
|
+
const link = document.createElement('link');
|
|
62
|
+
link.rel = 'stylesheet';
|
|
63
|
+
link.href = href;
|
|
64
|
+
return link;
|
|
65
|
+
});
|
|
66
|
+
this.root.prepend(...this.stylesheetLinks);
|
|
33
67
|
}
|
|
34
68
|
}
|
|
35
69
|
class UncialEditorElement extends UncialElement {
|
|
70
|
+
constructor() {
|
|
71
|
+
super();
|
|
72
|
+
this.props.onIssue = (issue) => this.emit('uncial-issue', issue);
|
|
73
|
+
this.props.onChange = (document) => {
|
|
74
|
+
// Keep the `json` getter in sync with internal edits. Assigning the
|
|
75
|
+
// same document back is safe: bindEditor's serialized-content guard
|
|
76
|
+
// prevents the update from re-entering the editor as a `setContent`.
|
|
77
|
+
this.props.json = document;
|
|
78
|
+
this.emit('uncial-change', document);
|
|
79
|
+
};
|
|
80
|
+
this.props.onMetaChange = (meta) => {
|
|
81
|
+
// Mirror `onChange`: keep the `meta` getter current and notify listeners.
|
|
82
|
+
this.props.meta = meta;
|
|
83
|
+
this.emit('uncial-meta-change', meta);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
36
86
|
get blocks() {
|
|
37
87
|
return this.props.blocks;
|
|
38
88
|
}
|
|
@@ -51,6 +101,18 @@ class UncialEditorElement extends UncialElement {
|
|
|
51
101
|
set json(value) {
|
|
52
102
|
this.setProp('json', value);
|
|
53
103
|
}
|
|
104
|
+
get meta() {
|
|
105
|
+
return this.props.meta;
|
|
106
|
+
}
|
|
107
|
+
set meta(value) {
|
|
108
|
+
this.setProp('meta', value);
|
|
109
|
+
}
|
|
110
|
+
get metaFields() {
|
|
111
|
+
return this.props.metaFields;
|
|
112
|
+
}
|
|
113
|
+
set metaFields(value) {
|
|
114
|
+
this.setProp('metaFields', value);
|
|
115
|
+
}
|
|
54
116
|
get extensions() {
|
|
55
117
|
return this.props.extensions;
|
|
56
118
|
}
|
|
@@ -75,21 +137,27 @@ class UncialEditorElement extends UncialElement {
|
|
|
75
137
|
set attributesController(value) {
|
|
76
138
|
this.setProp('attributesController', value);
|
|
77
139
|
}
|
|
78
|
-
|
|
79
|
-
return
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
140
|
+
get attributesPanel() {
|
|
141
|
+
return this.props.attributesPanel;
|
|
142
|
+
}
|
|
143
|
+
set attributesPanel(value) {
|
|
144
|
+
this.setProp('attributesPanel', value);
|
|
145
|
+
}
|
|
146
|
+
get presentation() {
|
|
147
|
+
return this.props.presentation;
|
|
148
|
+
}
|
|
149
|
+
set presentation(value) {
|
|
150
|
+
this.setProp('presentation', value);
|
|
151
|
+
}
|
|
152
|
+
mountComponent(target) {
|
|
153
|
+
return mount(UncialEditor, { target, props: this.props });
|
|
90
154
|
}
|
|
91
155
|
}
|
|
92
156
|
class UncialRendererElement extends UncialElement {
|
|
157
|
+
constructor() {
|
|
158
|
+
super();
|
|
159
|
+
this.props.onIssue = (issue) => this.emit('uncial-issue', issue);
|
|
160
|
+
}
|
|
93
161
|
get content() {
|
|
94
162
|
return this.props.content;
|
|
95
163
|
}
|
|
@@ -108,14 +176,8 @@ class UncialRendererElement extends UncialElement {
|
|
|
108
176
|
set schema(value) {
|
|
109
177
|
this.setProp('schema', value);
|
|
110
178
|
}
|
|
111
|
-
|
|
112
|
-
return mount(UncialRenderer, {
|
|
113
|
-
target: this.shadowRoot ?? this,
|
|
114
|
-
props: {
|
|
115
|
-
...this.props,
|
|
116
|
-
onIssue: (issue) => this.emit('uncial-issue', issue)
|
|
117
|
-
}
|
|
118
|
-
});
|
|
179
|
+
mountComponent(target) {
|
|
180
|
+
return mount(UncialRenderer, { target, props: this.props });
|
|
119
181
|
}
|
|
120
182
|
}
|
|
121
183
|
if (typeof customElements !== 'undefined') {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a deeply reactive props object for imperative `mount(...)` calls.
|
|
3
|
+
*
|
|
4
|
+
* Svelte runes are only available in `.svelte`/`.svelte.ts` modules, so this
|
|
5
|
+
* helper lets the plain TypeScript custom-element module own a `$state`-backed
|
|
6
|
+
* object. Mutating the returned proxy updates the mounted component's props in
|
|
7
|
+
* place instead of requiring a destroy/remount cycle, and `$bindable` props
|
|
8
|
+
* written by the component are reflected back onto the same object.
|
|
9
|
+
*/
|
|
10
|
+
export declare function reactiveProps<Props extends Record<string, unknown>>(initial: Props): Props;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a deeply reactive props object for imperative `mount(...)` calls.
|
|
3
|
+
*
|
|
4
|
+
* Svelte runes are only available in `.svelte`/`.svelte.ts` modules, so this
|
|
5
|
+
* helper lets the plain TypeScript custom-element module own a `$state`-backed
|
|
6
|
+
* object. Mutating the returned proxy updates the mounted component's props in
|
|
7
|
+
* place instead of requiring a destroy/remount cycle, and `$bindable` props
|
|
8
|
+
* written by the component are reflected back onto the same object.
|
|
9
|
+
*/
|
|
10
|
+
export function reactiveProps(initial) {
|
|
11
|
+
const props = $state(initial);
|
|
12
|
+
return props;
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,134 +1,135 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}
|
|
2
|
+
"name": "uncial",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/d-flood/uncial.git"
|
|
8
|
+
},
|
|
9
|
+
"bugs": {
|
|
10
|
+
"url": "https://github.com/d-flood/uncial/issues"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://d-flood.github.io/uncial/",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"access": "public",
|
|
15
|
+
"provenance": true
|
|
16
|
+
},
|
|
17
|
+
"files": [
|
|
18
|
+
"dist",
|
|
19
|
+
"!dist/**/*.test.*",
|
|
20
|
+
"!dist/**/*.spec.*"
|
|
21
|
+
],
|
|
22
|
+
"sideEffects": [
|
|
23
|
+
"**/*.css",
|
|
24
|
+
"./dist/web-components/index.js"
|
|
25
|
+
],
|
|
26
|
+
"svelte": "./dist/index.js",
|
|
27
|
+
"types": "./dist/index.d.ts",
|
|
28
|
+
"type": "module",
|
|
29
|
+
"exports": {
|
|
30
|
+
"./package.json": "./package.json",
|
|
31
|
+
".": {
|
|
32
|
+
"types": "./dist/index.d.ts",
|
|
33
|
+
"svelte": "./dist/index.js",
|
|
34
|
+
"default": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./core": {
|
|
37
|
+
"types": "./dist/core/index.d.ts",
|
|
38
|
+
"svelte": "./dist/core/index.js",
|
|
39
|
+
"default": "./dist/core/index.js"
|
|
40
|
+
},
|
|
41
|
+
"./editor": {
|
|
42
|
+
"types": "./dist/editor/index.d.ts",
|
|
43
|
+
"svelte": "./dist/editor/index.js",
|
|
44
|
+
"default": "./dist/editor/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./render": {
|
|
47
|
+
"types": "./dist/render/index.d.ts",
|
|
48
|
+
"svelte": "./dist/render/index.js",
|
|
49
|
+
"default": "./dist/render/index.js"
|
|
50
|
+
},
|
|
51
|
+
"./styles": "./dist/styles/index.css",
|
|
52
|
+
"./styles/chrome": "./dist/styles/chrome.css",
|
|
53
|
+
"./styles/tokens": "./dist/styles/tokens.css",
|
|
54
|
+
"./styles/base": "./dist/styles/base.css",
|
|
55
|
+
"./styles/controls": "./dist/styles/controls.css",
|
|
56
|
+
"./styles/prose": "./dist/styles/prose.css",
|
|
57
|
+
"./runtime/svelte": {
|
|
58
|
+
"types": "./dist/runtime/svelte.d.ts",
|
|
59
|
+
"svelte": "./dist/runtime/svelte.js",
|
|
60
|
+
"default": "./dist/runtime/svelte.js"
|
|
61
|
+
},
|
|
62
|
+
"./web-components": {
|
|
63
|
+
"types": "./dist/web-components/index.d.ts",
|
|
64
|
+
"svelte": "./dist/web-components/index.js",
|
|
65
|
+
"default": "./dist/web-components/index.js"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"svelte": "^5.0.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@changesets/cli": "^2.31.0",
|
|
73
|
+
"@eslint/compat": "^2.0.2",
|
|
74
|
+
"@eslint/js": "^9.39.2",
|
|
75
|
+
"@playwright/test": "^1.58.2",
|
|
76
|
+
"@sveltejs/adapter-static": "^3.0.10",
|
|
77
|
+
"@sveltejs/kit": "^2.50.2",
|
|
78
|
+
"@sveltejs/package": "^2.5.7",
|
|
79
|
+
"@sveltejs/vite-plugin-svelte": "^6.2.4",
|
|
80
|
+
"@tailwindcss/vite": "^4.2.4",
|
|
81
|
+
"@types/node": "^22",
|
|
82
|
+
"@vitest/browser-playwright": "^4.0.18",
|
|
83
|
+
"daisyui": "^5.5.19",
|
|
84
|
+
"eslint": "^9.39.2",
|
|
85
|
+
"eslint-config-prettier": "^10.1.8",
|
|
86
|
+
"eslint-plugin-svelte": "^3.14.0",
|
|
87
|
+
"globals": "^17.3.0",
|
|
88
|
+
"mdsvex": "^0.12.7",
|
|
89
|
+
"playwright": "^1.58.2",
|
|
90
|
+
"prettier": "^3.8.1",
|
|
91
|
+
"prettier-plugin-svelte": "^3.4.1",
|
|
92
|
+
"publint": "^0.3.17",
|
|
93
|
+
"svelte": "^5.56.10",
|
|
94
|
+
"svelte-check": "^4.4.2",
|
|
95
|
+
"tailwindcss": "^4.2.4",
|
|
96
|
+
"typescript": "^5.9.3",
|
|
97
|
+
"typescript-eslint": "^8.54.0",
|
|
98
|
+
"vite": "^7.3.1",
|
|
99
|
+
"vite-plugin-devtools-json": "^1.0.0",
|
|
100
|
+
"vitest": "^4.0.18",
|
|
101
|
+
"vitest-browser-svelte": "^2.0.2"
|
|
102
|
+
},
|
|
103
|
+
"keywords": [
|
|
104
|
+
"svelte"
|
|
105
|
+
],
|
|
106
|
+
"dependencies": {
|
|
107
|
+
"@tiptap/core": "^3.20.0",
|
|
108
|
+
"@tiptap/extension-code": "^3.20.0",
|
|
109
|
+
"@tiptap/extension-code-block-lowlight": "3.20.0",
|
|
110
|
+
"@tiptap/extension-table": "^3.20.0",
|
|
111
|
+
"@tiptap/html": "^3.20.0",
|
|
112
|
+
"@tiptap/pm": "^3.20.0",
|
|
113
|
+
"@tiptap/starter-kit": "^3.20.0",
|
|
114
|
+
"highlight.js": "^11.11.2",
|
|
115
|
+
"lowlight": "^3.3.0",
|
|
116
|
+
"phosphor-svelte": "^3.1.0"
|
|
117
|
+
},
|
|
118
|
+
"scripts": {
|
|
119
|
+
"dev": "vite dev",
|
|
120
|
+
"build": "vite build",
|
|
121
|
+
"preview": "vite preview",
|
|
122
|
+
"package": "svelte-kit sync && svelte-package",
|
|
123
|
+
"changeset": "changeset",
|
|
124
|
+
"version": "changeset version",
|
|
125
|
+
"release": "pnpm run prepack && changeset publish",
|
|
126
|
+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
127
|
+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
128
|
+
"lint": "prettier --check . && eslint .",
|
|
129
|
+
"format": "prettier --write .",
|
|
130
|
+
"test:unit": "vitest --project server",
|
|
131
|
+
"test:browser": "vitest --project client",
|
|
132
|
+
"test": "pnpm run test:unit -- --run && pnpm run test:browser -- --run && pnpm run test:e2e",
|
|
133
|
+
"test:e2e": "playwright test"
|
|
134
|
+
}
|
|
135
|
+
}
|