@backmatter/core 0.0.48 → 0.0.49

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backmatter/core",
3
- "version": "0.0.48",
3
+ "version": "0.0.49",
4
4
  "description": "Experimental Backmatter SDK. APIs will break. Not ready for production.",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -17,6 +17,9 @@ function fixFor(field: string, rest: string): string | undefined {
17
17
  if (rest.includes("media URL")) return "Use a URL from the media library.";
18
18
  const relation = rest.match(/^must name a (\S+) document$/);
19
19
  if (relation) return `Pick an existing ${relation[1]} document.`;
20
+ if (rest === "must be a document route" || rest.startsWith("must be a route of ")) {
21
+ return "Link to a page that exists, or create that page first.";
22
+ }
20
23
  return undefined;
21
24
  }
22
25