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.
Files changed (93) hide show
  1. package/README.md +82 -15
  2. package/dist/core/attributes.d.ts +21 -3
  3. package/dist/core/attributes.js +86 -15
  4. package/dist/core/defineBlock.js +26 -12
  5. package/dist/core/index.d.ts +3 -1
  6. package/dist/core/index.js +2 -1
  7. package/dist/core/issues.d.ts +7 -0
  8. package/dist/core/issues.js +9 -0
  9. package/dist/core/meta.js +2 -7
  10. package/dist/core/migrations.d.ts +30 -0
  11. package/dist/core/migrations.js +50 -0
  12. package/dist/core/normalize.d.ts +12 -1
  13. package/dist/core/normalize.js +123 -22
  14. package/dist/core/registry.d.ts +7 -0
  15. package/dist/core/registry.js +35 -4
  16. package/dist/core/runtime.d.ts +7 -0
  17. package/dist/core/types.d.ts +31 -3
  18. package/dist/core/validate.js +27 -7
  19. package/dist/editor/AttributeFieldControl.svelte +155 -7
  20. package/dist/editor/AttributeFieldControl.svelte.d.ts +1 -0
  21. package/dist/editor/BlockAttributesPanel.svelte +76 -44
  22. package/dist/editor/BlockAttributesPanel.svelte.d.ts +9 -1
  23. package/dist/editor/Editor.svelte +149 -27
  24. package/dist/editor/Editor.svelte.d.ts +37 -0
  25. package/dist/editor/RichTextAttributeEditor.svelte +75 -145
  26. package/dist/editor/RichTextAttributeEditor.svelte.d.ts +2 -1
  27. package/dist/editor/Toolbar.svelte +2 -3
  28. package/dist/editor/attributeTargets.d.ts +23 -0
  29. package/dist/editor/attributeTargets.js +21 -0
  30. package/dist/editor/attributesController.d.ts +12 -0
  31. package/dist/editor/attributesController.js +142 -230
  32. package/dist/editor/bindEditor.d.ts +7 -0
  33. package/dist/editor/bindEditor.js +141 -27
  34. package/dist/editor/chooseAttribute.d.ts +26 -0
  35. package/dist/editor/chooseAttribute.js +10 -0
  36. package/dist/editor/containerChildOps.d.ts +33 -0
  37. package/dist/editor/containerChildOps.js +115 -0
  38. package/dist/editor/dropdownDismiss.d.ts +18 -0
  39. package/dist/editor/dropdownDismiss.js +46 -0
  40. package/dist/editor/dropdownFloat.d.ts +16 -0
  41. package/dist/editor/dropdownFloat.js +127 -0
  42. package/dist/editor/index.d.ts +3 -1
  43. package/dist/editor/index.js +2 -1
  44. package/dist/editor/linkController.d.ts +19 -0
  45. package/dist/editor/linkController.js +72 -0
  46. package/dist/editor/toolbarFeatures.d.ts +12 -0
  47. package/dist/editor/toolbarFeatures.js +36 -0
  48. package/dist/index.d.ts +1 -0
  49. package/dist/index.js +1 -0
  50. package/dist/render/Renderer.svelte +1 -1
  51. package/dist/render/RichContent.svelte +12 -4
  52. package/dist/render/RichContent.svelte.d.ts +2 -0
  53. package/dist/render/RichNode.svelte +80 -10
  54. package/dist/render/RichNode.svelte.d.ts +2 -0
  55. package/dist/render/Tab.svelte +27 -0
  56. package/dist/render/Tab.svelte.d.ts +10 -0
  57. package/dist/render/Tabs.svelte +57 -0
  58. package/dist/render/Tabs.svelte.d.ts +10 -0
  59. package/dist/render/index.d.ts +3 -0
  60. package/dist/render/index.js +6 -0
  61. package/dist/render/sanitize.d.ts +6 -0
  62. package/dist/render/sanitize.js +20 -1
  63. package/dist/render/tabSelection.svelte.d.ts +8 -0
  64. package/dist/render/tabSelection.svelte.js +40 -0
  65. package/dist/runtime/reactiveProps.svelte.d.ts +16 -0
  66. package/dist/runtime/reactiveProps.svelte.js +16 -0
  67. package/dist/runtime/svelte.d.ts +2 -1
  68. package/dist/runtime/svelte.js +26 -6
  69. package/dist/shared/EditorBlockFixture.svelte +24 -0
  70. package/dist/shared/EditorBlockFixture.svelte.d.ts +9 -0
  71. package/dist/shared/content.js +2 -1
  72. package/dist/shared/documentIdentity.d.ts +6 -0
  73. package/dist/shared/documentIdentity.js +64 -0
  74. package/dist/shared/guards.d.ts +13 -0
  75. package/dist/shared/guards.js +16 -0
  76. package/dist/shared/richText.js +20 -4
  77. package/dist/shared/runtimeId.d.ts +8 -0
  78. package/dist/shared/runtimeId.js +8 -0
  79. package/dist/shared/syntaxHighlight.d.ts +14 -0
  80. package/dist/shared/syntaxHighlight.js +36 -3
  81. package/dist/shared/tiptap.js +140 -27
  82. package/dist/styles/base.css +177 -0
  83. package/dist/styles/prose.css +26 -0
  84. package/dist/styles/tokens.css +53 -69
  85. package/dist/tabs.d.ts +6 -0
  86. package/dist/tabs.js +36 -0
  87. package/dist/web-components/UncialEditor.svelte +23 -7
  88. package/dist/web-components/UncialEditor.svelte.d.ts +7 -2
  89. package/dist/web-components/index.d.ts +45 -10
  90. package/dist/web-components/index.js +98 -36
  91. package/dist/web-components/reactiveProps.svelte.d.ts +10 -0
  92. package/dist/web-components/reactiveProps.svelte.js +13 -0
  93. 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
- props = {};
8
- mounted = null;
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.render();
20
+ if (this.instance)
21
+ return;
22
+ this.instance = this.mountComponent(this.root);
12
23
  }
13
24
  disconnectedCallback() {
14
- this.destroy();
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 = { ...this.props, [key]: value };
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
- render() {
25
- this.destroy();
26
- this.mounted = this.mount();
27
- }
28
- destroy() {
29
- if (!this.mounted)
30
- return;
31
- void unmount(this.mounted);
32
- this.mounted = null;
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
- mount() {
79
- return mount(UncialEditor, {
80
- target: this.shadowRoot ?? this,
81
- props: {
82
- ...this.props,
83
- onIssue: (issue) => this.emit('uncial-issue', issue),
84
- onChange: (document) => {
85
- this.props = { ...this.props, json: document };
86
- this.emit('uncial-change', document);
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
- mount() {
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
- "name": "uncial",
3
- "version": "0.0.7",
4
- "packageManager": "bun@1.3.10",
5
- "license": "MIT",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/d-flood/uncial.git"
9
- },
10
- "bugs": {
11
- "url": "https://github.com/d-flood/uncial/issues"
12
- },
13
- "homepage": "https://d-flood.github.io/uncial/",
14
- "scripts": {
15
- "dev": "vite dev",
16
- "build": "vite build",
17
- "preview": "vite preview",
18
- "prepare": "bunx svelte-kit sync || true",
19
- "package": "svelte-kit sync && svelte-package",
20
- "prepack": "bun run package && bunx publint",
21
- "changeset": "changeset",
22
- "version": "changeset version",
23
- "release": "bun run prepack && changeset publish",
24
- "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
25
- "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
26
- "lint": "prettier --check . && eslint .",
27
- "format": "prettier --write .",
28
- "test:unit": "vitest --project server",
29
- "test:browser": "vitest --project client",
30
- "test": "bun run test:unit -- --run && bun run test:browser -- --run && bun run test:e2e",
31
- "test:e2e": "playwright test"
32
- },
33
- "publishConfig": {
34
- "access": "public",
35
- "provenance": true
36
- },
37
- "files": [
38
- "dist",
39
- "!dist/**/*.test.*",
40
- "!dist/**/*.spec.*"
41
- ],
42
- "sideEffects": [
43
- "**/*.css",
44
- "./dist/web-components/index.js"
45
- ],
46
- "svelte": "./dist/index.js",
47
- "types": "./dist/index.d.ts",
48
- "type": "module",
49
- "exports": {
50
- ".": {
51
- "types": "./dist/index.d.ts",
52
- "svelte": "./dist/index.js",
53
- "default": "./dist/index.js"
54
- },
55
- "./core": {
56
- "types": "./dist/core/index.d.ts",
57
- "svelte": "./dist/core/index.js",
58
- "default": "./dist/core/index.js"
59
- },
60
- "./editor": {
61
- "types": "./dist/editor/index.d.ts",
62
- "svelte": "./dist/editor/index.js",
63
- "default": "./dist/editor/index.js"
64
- },
65
- "./render": {
66
- "types": "./dist/render/index.d.ts",
67
- "svelte": "./dist/render/index.js",
68
- "default": "./dist/render/index.js"
69
- },
70
- "./styles": "./dist/styles/index.css",
71
- "./styles/chrome": "./dist/styles/chrome.css",
72
- "./styles/tokens": "./dist/styles/tokens.css",
73
- "./styles/base": "./dist/styles/base.css",
74
- "./styles/controls": "./dist/styles/controls.css",
75
- "./styles/prose": "./dist/styles/prose.css",
76
- "./runtime/svelte": {
77
- "types": "./dist/runtime/svelte.d.ts",
78
- "svelte": "./dist/runtime/svelte.js",
79
- "default": "./dist/runtime/svelte.js"
80
- },
81
- "./web-components": {
82
- "types": "./dist/web-components/index.d.ts",
83
- "svelte": "./dist/web-components/index.js",
84
- "default": "./dist/web-components/index.js"
85
- }
86
- },
87
- "peerDependencies": {
88
- "svelte": "^5.0.0"
89
- },
90
- "devDependencies": {
91
- "@changesets/cli": "^2.31.0",
92
- "@eslint/compat": "^2.0.2",
93
- "@eslint/js": "^9.39.2",
94
- "@playwright/test": "^1.58.2",
95
- "@sveltejs/adapter-static": "^3.0.10",
96
- "@sveltejs/kit": "^2.50.2",
97
- "@sveltejs/package": "^2.5.7",
98
- "@sveltejs/vite-plugin-svelte": "^6.2.4",
99
- "@tailwindcss/vite": "^4.2.4",
100
- "@types/node": "^22",
101
- "@vitest/browser-playwright": "^4.0.18",
102
- "daisyui": "^5.5.19",
103
- "eslint": "^9.39.2",
104
- "eslint-config-prettier": "^10.1.8",
105
- "eslint-plugin-svelte": "^3.14.0",
106
- "globals": "^17.3.0",
107
- "mdsvex": "^0.12.7",
108
- "playwright": "^1.58.2",
109
- "prettier": "^3.8.1",
110
- "prettier-plugin-svelte": "^3.4.1",
111
- "publint": "^0.3.17",
112
- "svelte": "^5.51.0",
113
- "svelte-check": "^4.4.2",
114
- "tailwindcss": "^4.2.4",
115
- "typescript": "^5.9.3",
116
- "typescript-eslint": "^8.54.0",
117
- "vite": "^7.3.1",
118
- "vite-plugin-devtools-json": "^1.0.0",
119
- "vitest": "^4.0.18",
120
- "vitest-browser-svelte": "^2.0.2"
121
- },
122
- "keywords": [
123
- "svelte"
124
- ],
125
- "dependencies": {
126
- "@tiptap/core": "^3.20.0",
127
- "@tiptap/extension-code-block-lowlight": "3.20.0",
128
- "@tiptap/html": "^3.20.0",
129
- "@tiptap/pm": "^3.20.0",
130
- "@tiptap/starter-kit": "^3.20.0",
131
- "lowlight": "^3.3.0",
132
- "phosphor-svelte": "^3.1.0"
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
+ }