@prosekit/web 0.5.7 → 0.5.9

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,13 +0,0 @@
1
- // src/hooks/use-editor-extension.ts
2
- import {
3
- useEffect
4
- } from "@aria-ui/core";
5
- function useEditorExtension(host, editor, extension) {
6
- useEffect(host, () => {
7
- return editor.get()?.use(extension);
8
- });
9
- }
10
-
11
- export {
12
- useEditorExtension
13
- };
@@ -1,17 +0,0 @@
1
- // src/utils/get-default-state.ts
2
- import {
3
- createSignal
4
- } from "@aria-ui/core";
5
- function getStateWithDefaults(state, props) {
6
- const merged = { ...state };
7
- for (const key of Object.keys(props)) {
8
- if (!merged[key]) {
9
- merged[key] = createSignal(props[key].default);
10
- }
11
- }
12
- return merged;
13
- }
14
-
15
- export {
16
- getStateWithDefaults
17
- };