@threadlabs/looma 0.37.2 → 0.37.4
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.
|
@@ -74,7 +74,13 @@ export function connect(host) {
|
|
|
74
74
|
};
|
|
75
75
|
const observer = new MutationObserver(schedule);
|
|
76
76
|
observer.observe(element, { childList: true, subtree: true, attributes: true, attributeFilter: ["aria-describedby", "slot", "id", "role"] });
|
|
77
|
-
|
|
77
|
+
// Track props before deferred rewiring, even when no control is mounted yet.
|
|
78
|
+
const stop = host.effect(() => {
|
|
79
|
+
void host.props.disabled.value;
|
|
80
|
+
void host.props.required.value;
|
|
81
|
+
void host.props.invalid.value;
|
|
82
|
+
schedule();
|
|
83
|
+
});
|
|
78
84
|
wire();
|
|
79
85
|
return () => {
|
|
80
86
|
stop();
|
package/docs/catalog.json
CHANGED
|
@@ -11492,10 +11492,7 @@ function getDefaultEditorExtensions(options = {}) {
|
|
|
11492
11492
|
LoomaSmartPaste,
|
|
11493
11493
|
codeBlockNodeView ? codeBlock.extend({ addNodeView: () => codeBlockNodeView }) : codeBlock,
|
|
11494
11494
|
Typography,
|
|
11495
|
-
Placeholder.configure({
|
|
11496
|
-
placeholder: ({ node }) => node.type.name === "paragraph" ? placeholder : "",
|
|
11497
|
-
emptyNodeClass: "is-editor-empty"
|
|
11498
|
-
}),
|
|
11495
|
+
Placeholder.configure({ placeholder: ({ node }) => node.type.name === "paragraph" ? placeholder : "" }),
|
|
11499
11496
|
...mention ? [mention] : [],
|
|
11500
11497
|
LoomaTableKit,
|
|
11501
11498
|
LoomaListBehavior,
|
|
@@ -15,7 +15,7 @@ export type LoomaCodeLanguages = NonNullable<Parameters<typeof createLowlight>[0
|
|
|
15
15
|
export interface DefaultEditorExtensionsOptions {
|
|
16
16
|
/** Replaceable display data; updating it must use setReferenceDisplay, never setContent. */
|
|
17
17
|
references?: LoomaReferenceMap;
|
|
18
|
-
/**
|
|
18
|
+
/** Writing prompt displayed in an empty paragraph only while the document is empty. */
|
|
19
19
|
placeholder?: string;
|
|
20
20
|
/** Passed to Tiptap Link; defaults false to keep editing clicks in the editor. */
|
|
21
21
|
linkOpenOnClick?: boolean;
|
package/package.json
CHANGED
package/vue/editor/index.js
CHANGED
|
@@ -5733,7 +5733,12 @@ function connect$9(host) {
|
|
|
5733
5733
|
"role"
|
|
5734
5734
|
]
|
|
5735
5735
|
});
|
|
5736
|
-
const stop = host.effect(
|
|
5736
|
+
const stop = host.effect(() => {
|
|
5737
|
+
host.props.disabled.value;
|
|
5738
|
+
host.props.required.value;
|
|
5739
|
+
host.props.invalid.value;
|
|
5740
|
+
schedule();
|
|
5741
|
+
});
|
|
5737
5742
|
wire();
|
|
5738
5743
|
return () => {
|
|
5739
5744
|
stop();
|