@meowdown/react 0.44.0 → 0.44.2

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 (2) hide show
  1. package/dist/index.js +3 -3
  2. package/package.json +5 -5
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() ? /(?<!\S)\/(\S.*)?$/u : /\/(\S.*)?$/u;
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() ? /(?<!\S)#[\da-z]+$/iu : /#[\da-z]+$/iu;
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 = canUseRegexLookbehind() ? /(?:\[\[[^[\]]*|(?<!\S)@(?:[^[\]\s][^[\]]*)?)$/u : /(?:\[\[[^[\]]*|@(?:[^[\]\s][^[\]]*)?)$/u;
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.0",
4
+ "version": "0.44.2",
5
5
  "license": "MIT",
6
6
  "repository": {
7
7
  "type": "git",
@@ -20,13 +20,13 @@
20
20
  "dependencies": {
21
21
  "@base-ui/react": "^1.6.0",
22
22
  "@ocavue/utils": "^1.7.0",
23
- "@prosekit/core": "^0.13.0-beta.5",
24
- "@prosekit/pm": "^0.1.19-beta.2",
25
- "@prosekit/react": "^0.8.0-beta.20",
23
+ "@prosekit/core": "^0.13.0-beta.6",
24
+ "@prosekit/pm": "^0.1.19-beta.3",
25
+ "@prosekit/react": "^0.8.0-beta.21",
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.0"
29
+ "@meowdown/core": "0.44.2"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "react": "^19.0.0",