@meowdown/react 0.11.0 → 0.11.1
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/dist/index.js +9 -2
- package/dist/style.css +15 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -480,6 +480,7 @@ function EditorExtensions({ markMode, onDocChange, onWikilinkClick, resolveImage
|
|
|
480
480
|
var autocomplete_menu_module_default = {
|
|
481
481
|
"Detail": "meow_Detail_Dqll0G",
|
|
482
482
|
"Item": "meow_Item_Dqll0G",
|
|
483
|
+
"Label": "meow_Label_Dqll0G",
|
|
483
484
|
"Popup": "meow_Popup_Dqll0G",
|
|
484
485
|
"Positioner": "meow_Positioner_Dqll0G"
|
|
485
486
|
};
|
|
@@ -826,7 +827,10 @@ function TagMenu({ onTagSearch }) {
|
|
|
826
827
|
editor.commands.insertText({ text: `#${item.tag} ` });
|
|
827
828
|
item.onSelect?.();
|
|
828
829
|
},
|
|
829
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
830
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
831
|
+
className: autocomplete_menu_module_default.Label,
|
|
832
|
+
children: item.label ?? `#${item.tag}`
|
|
833
|
+
}), item.detail ? /* @__PURE__ */ jsx("span", {
|
|
830
834
|
className: autocomplete_menu_module_default.Detail,
|
|
831
835
|
children: item.detail
|
|
832
836
|
}) : null]
|
|
@@ -886,7 +890,10 @@ function WikilinkMenu({ onWikilinkSearch }) {
|
|
|
886
890
|
editor.commands.insertText({ text: `[[${item.target}]]` });
|
|
887
891
|
item.onSelect?.();
|
|
888
892
|
},
|
|
889
|
-
children: [/* @__PURE__ */ jsx("span", {
|
|
893
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
894
|
+
className: autocomplete_menu_module_default.Label,
|
|
895
|
+
children: item.label ?? item.target
|
|
896
|
+
}), item.detail ? /* @__PURE__ */ jsx("span", {
|
|
890
897
|
className: autocomplete_menu_module_default.Detail,
|
|
891
898
|
children: item.detail
|
|
892
899
|
}) : null]
|
package/dist/style.css
CHANGED
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
}
|
|
265
265
|
.meow_Positioner_Dqll0G {
|
|
266
266
|
z-index: 50;
|
|
267
|
-
width: min-
|
|
267
|
+
width: min(24rem, 100vw - 1rem);
|
|
268
268
|
height: min-content;
|
|
269
269
|
display: block;
|
|
270
270
|
overflow: visible;
|
|
@@ -279,11 +279,13 @@
|
|
|
279
279
|
background: light-dark(#fff, #18181b);
|
|
280
280
|
border-radius: .75rem;
|
|
281
281
|
flex-direction: column;
|
|
282
|
-
|
|
282
|
+
width: 100%;
|
|
283
|
+
min-width: min(15rem, 100%);
|
|
284
|
+
max-width: 100%;
|
|
283
285
|
max-height: 25rem;
|
|
284
286
|
padding: .25rem;
|
|
285
287
|
display: flex;
|
|
286
|
-
overflow
|
|
288
|
+
overflow: hidden auto;
|
|
287
289
|
box-shadow: 0 10px 15px -3px #0000001a, 0 4px 6px -4px #0000001a;
|
|
288
290
|
}
|
|
289
291
|
|
|
@@ -297,6 +299,7 @@
|
|
|
297
299
|
justify-content: space-between;
|
|
298
300
|
align-items: center;
|
|
299
301
|
gap: 1.5rem;
|
|
302
|
+
min-width: 0;
|
|
300
303
|
padding: .375rem .75rem;
|
|
301
304
|
scroll-margin: .25rem;
|
|
302
305
|
font-size: .875rem;
|
|
@@ -318,10 +321,19 @@
|
|
|
318
321
|
}
|
|
319
322
|
}
|
|
320
323
|
|
|
324
|
+
.meow_Label_Dqll0G {
|
|
325
|
+
text-overflow: ellipsis;
|
|
326
|
+
min-width: 0;
|
|
327
|
+
overflow: hidden;
|
|
328
|
+
}
|
|
329
|
+
|
|
321
330
|
.meow_Detail_Dqll0G {
|
|
331
|
+
text-overflow: ellipsis;
|
|
332
|
+
max-width: 40%;
|
|
322
333
|
color: var(--meowdown-muted);
|
|
323
334
|
flex-shrink: 0;
|
|
324
335
|
font-size: .8125rem;
|
|
336
|
+
overflow: hidden;
|
|
325
337
|
}
|
|
326
338
|
.meow_Positioner_hpZLgq, .meow_MenuPositioner_hpZLgq {
|
|
327
339
|
z-index: 50;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meowdown/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@prosekit/pm": "^0.1.18",
|
|
29
29
|
"@prosekit/react": "^0.8.0-beta.2",
|
|
30
30
|
"clsx": "^2.1.1",
|
|
31
|
-
"@meowdown/core": "0.11.
|
|
31
|
+
"@meowdown/core": "0.11.1"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.0.0",
|