@meowdown/react 0.44.0 → 0.44.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 +3 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -998,7 +998,7 @@ var autocomplete_menu_module_default = {
|
|
|
998
998
|
|
|
999
999
|
//#endregion
|
|
1000
1000
|
//#region src/components/slash-menu.tsx
|
|
1001
|
-
const regex$2 = canUseRegexLookbehind() ?
|
|
1001
|
+
const regex$2 = new RegExp((canUseRegexLookbehind() ? String.raw`(?<!\S)` : "") + String.raw`\/(?!\/)(\S.*)?$`, "u");
|
|
1002
1002
|
const defaultOnFileSaveError = (error) => {
|
|
1003
1003
|
console.error("[meowdown] failed to save attached file:", error);
|
|
1004
1004
|
};
|
|
@@ -1392,7 +1392,7 @@ function returnsTrue() {
|
|
|
1392
1392
|
|
|
1393
1393
|
//#endregion
|
|
1394
1394
|
//#region src/components/tag-menu.tsx
|
|
1395
|
-
const regex$1 = canUseRegexLookbehind() ?
|
|
1395
|
+
const regex$1 = new RegExp((canUseRegexLookbehind() ? String.raw`(?<!\S)` : "") + String.raw`#[\da-z]+$`, "iu");
|
|
1396
1396
|
function TagMenu({ onTagSearch }) {
|
|
1397
1397
|
const editor = useEditor$1();
|
|
1398
1398
|
const [open, setOpen] = useState(false);
|
|
@@ -1455,7 +1455,7 @@ function TagMenu({ onTagSearch }) {
|
|
|
1455
1455
|
|
|
1456
1456
|
//#endregion
|
|
1457
1457
|
//#region src/components/wikilink-menu.tsx
|
|
1458
|
-
const regex =
|
|
1458
|
+
const regex = new RegExp(String.raw`(?:\[\[[^[\]]*|` + (canUseRegexLookbehind() ? String.raw`(?<!\S)` : "") + String.raw`@(?:[^[\]\s][^[\]]*)?)$`, "u");
|
|
1459
1459
|
function queryFromRegexMatch(match) {
|
|
1460
1460
|
return match[0].replace(/^(?:\[\[|@)/, "").trim();
|
|
1461
1461
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meowdown/react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.44.
|
|
4
|
+
"version": "0.44.1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"clsx": "^2.1.1",
|
|
27
27
|
"lucide-react": "^1.21.0",
|
|
28
28
|
"react-property": "^2.0.2",
|
|
29
|
-
"@meowdown/core": "0.44.
|
|
29
|
+
"@meowdown/core": "0.44.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"react": "^19.0.0",
|