@immediately-run/sdk 0.28.0 → 0.30.0

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 (61) hide show
  1. package/dist/components/HeadingAnchor.cjs +45 -0
  2. package/dist/components/HeadingAnchor.cjs.map +1 -0
  3. package/dist/components/HeadingAnchor.d.cts +29 -0
  4. package/dist/components/HeadingAnchor.d.ts +29 -0
  5. package/dist/components/HeadingAnchor.js +21 -0
  6. package/dist/components/HeadingAnchor.js.map +1 -0
  7. package/dist/components/MDXComponents.cjs +5 -0
  8. package/dist/components/MDXComponents.cjs.map +1 -1
  9. package/dist/components/MDXComponents.d.cts +1 -0
  10. package/dist/components/MDXComponents.d.ts +1 -0
  11. package/dist/components/MDXComponents.js +4 -0
  12. package/dist/components/MDXComponents.js.map +1 -1
  13. package/dist/index.cjs +3 -1
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.cts +6 -0
  16. package/dist/index.d.ts +6 -0
  17. package/dist/index.js +1 -0
  18. package/dist/index.js.map +1 -1
  19. package/dist/safeContent/SafeContent.cjs +54 -0
  20. package/dist/safeContent/SafeContent.cjs.map +1 -0
  21. package/dist/safeContent/SafeContent.d.cts +13 -0
  22. package/dist/safeContent/SafeContent.d.ts +13 -0
  23. package/dist/safeContent/SafeContent.js +30 -0
  24. package/dist/safeContent/SafeContent.js.map +1 -0
  25. package/dist/safeContent/index.cjs +43 -0
  26. package/dist/safeContent/index.cjs.map +1 -0
  27. package/dist/safeContent/index.d.cts +6 -0
  28. package/dist/safeContent/index.d.ts +6 -0
  29. package/dist/safeContent/index.js +14 -0
  30. package/dist/safeContent/index.js.map +1 -0
  31. package/dist/safeContent/parseSafeMdast.cjs +69 -0
  32. package/dist/safeContent/parseSafeMdast.cjs.map +1 -0
  33. package/dist/safeContent/parseSafeMdast.d.cts +31 -0
  34. package/dist/safeContent/parseSafeMdast.d.ts +31 -0
  35. package/dist/safeContent/parseSafeMdast.js +35 -0
  36. package/dist/safeContent/parseSafeMdast.js.map +1 -0
  37. package/dist/safeContent/renderMdast.cjs +138 -0
  38. package/dist/safeContent/renderMdast.cjs.map +1 -0
  39. package/dist/safeContent/renderMdast.d.cts +27 -0
  40. package/dist/safeContent/renderMdast.d.ts +27 -0
  41. package/dist/safeContent/renderMdast.js +114 -0
  42. package/dist/safeContent/renderMdast.js.map +1 -0
  43. package/dist/safeContent/sanitizeUrl.cjs +39 -0
  44. package/dist/safeContent/sanitizeUrl.cjs.map +1 -0
  45. package/dist/safeContent/sanitizeUrl.d.cts +9 -0
  46. package/dist/safeContent/sanitizeUrl.d.ts +9 -0
  47. package/dist/safeContent/sanitizeUrl.js +15 -0
  48. package/dist/safeContent/sanitizeUrl.js.map +1 -0
  49. package/dist/safeContent/wikilink.cjs +63 -0
  50. package/dist/safeContent/wikilink.cjs.map +1 -0
  51. package/dist/safeContent/wikilink.d.cts +21 -0
  52. package/dist/safeContent/wikilink.d.ts +21 -0
  53. package/dist/safeContent/wikilink.js +38 -0
  54. package/dist/safeContent/wikilink.js.map +1 -0
  55. package/dist/version.cjs +1 -1
  56. package/dist/version.cjs.map +1 -1
  57. package/dist/version.d.cts +1 -1
  58. package/dist/version.d.ts +1 -1
  59. package/dist/version.js +1 -1
  60. package/dist/version.js.map +1 -1
  61. package/package.json +9 -3
@@ -0,0 +1,63 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var wikilink_exports = {};
20
+ __export(wikilink_exports, {
21
+ parseWikiInner: () => parseWikiInner,
22
+ splitWikiLinks: () => splitWikiLinks
23
+ });
24
+ module.exports = __toCommonJS(wikilink_exports);
25
+ const WIKILINK = /\[\[([^[\]]+)\]\]/g;
26
+ function parseWikiInner(inner) {
27
+ const pipe = inner.indexOf("|");
28
+ let target;
29
+ let label;
30
+ if (pipe === -1) {
31
+ target = inner.trim();
32
+ } else {
33
+ label = inner.slice(0, pipe).trim();
34
+ target = inner.slice(pipe + 1).trim();
35
+ }
36
+ if (target === "") return null;
37
+ return label ? { target, label } : { target };
38
+ }
39
+ function splitWikiLinks(value) {
40
+ if (value.indexOf("[[") === -1) return null;
41
+ const out = [];
42
+ let lastIndex = 0;
43
+ let produced = false;
44
+ WIKILINK.lastIndex = 0;
45
+ let match;
46
+ while ((match = WIKILINK.exec(value)) !== null) {
47
+ const token = parseWikiInner(match[1]);
48
+ if (!token) continue;
49
+ if (match.index > lastIndex) out.push({ text: value.slice(lastIndex, match.index) });
50
+ out.push({ wiki: token });
51
+ lastIndex = match.index + match[0].length;
52
+ produced = true;
53
+ }
54
+ if (!produced) return null;
55
+ if (lastIndex < value.length) out.push({ text: value.slice(lastIndex) });
56
+ return out;
57
+ }
58
+ // Annotate the CommonJS export names for ESM import in node:
59
+ 0 && (module.exports = {
60
+ parseWikiInner,
61
+ splitWikiLinks
62
+ });
63
+ //# sourceMappingURL=wikilink.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/safeContent/wikilink.ts"],"sourcesContent":["// Wikilink parsing for the safe content renderer (TRUST_MODES_SPEC §5.1). A §5.1\n// residual: wikilinks resolve **only within the granted mount, never a fetch**. The\n// kernel's executable pipeline compiles `[[target]]`/`[[label|target]]` to a\n// `<WikiLink>` component (transpiler `remarkWikiLinks`, MARKDOWN_SYNTAX_SPEC §13); the\n// SAFE renderer parses raw source, so it splits `[[…]]` out of text itself with the\n// same byte-local rule and hands the raw target/label to an injected, **in-mount**\n// resolver. The renderer never fetches; resolution is the consumer's mount-scoped\n// callback (or, absent one, the link renders as inert text).\n\n// Inner content up to the closing `]]`, forbidding `[`/`]` so nested brackets can't\n// be swallowed. Global — a text run may hold several.\nconst WIKILINK = /\\[\\[([^[\\]]+)\\]\\]/g;\n\nexport interface WikiLinkToken {\n /** The raw target path, verbatim (relative or absolute; resolved in-mount only). */\n target: string;\n /** The explicit label, or undefined (the component derives one). */\n label?: string;\n}\n\nexport type WikiPart = { text: string } | { wiki: WikiLinkToken };\n\n/** Parse the `[[label|target]]` / `[[target]]` inner text (label first, then target\n * — the §13.1 order), or `null` for an empty target (leave the literal `[[…]]`). */\nexport function parseWikiInner(inner: string): WikiLinkToken | null {\n const pipe = inner.indexOf('|');\n let target: string;\n let label: string | undefined;\n if (pipe === -1) {\n target = inner.trim();\n } else {\n label = inner.slice(0, pipe).trim();\n target = inner.slice(pipe + 1).trim();\n }\n if (target === '') return null;\n return label ? { target, label } : { target };\n}\n\n/**\n * Split a text string on its `[[…]]` runs into ordered text / wiki parts, or `null`\n * when there is no usable wiki-link (so the caller keeps the text node untouched).\n */\nexport function splitWikiLinks(value: string): WikiPart[] | null {\n if (value.indexOf('[[') === -1) return null;\n const out: WikiPart[] = [];\n let lastIndex = 0;\n let produced = false;\n WIKILINK.lastIndex = 0;\n let match: RegExpExecArray | null;\n while ((match = WIKILINK.exec(value)) !== null) {\n const token = parseWikiInner(match[1]);\n if (!token) continue; // empty target → keep the literal `[[…]]`\n if (match.index > lastIndex) out.push({ text: value.slice(lastIndex, match.index) });\n out.push({ wiki: token });\n lastIndex = match.index + match[0].length;\n produced = true;\n }\n if (!produced) return null;\n if (lastIndex < value.length) out.push({ text: value.slice(lastIndex) });\n return out;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,MAAM,WAAW;AAaV,SAAS,eAAe,OAAqC;AAClE,QAAM,OAAO,MAAM,QAAQ,GAAG;AAC9B,MAAI;AACJ,MAAI;AACJ,MAAI,SAAS,IAAI;AACf,aAAS,MAAM,KAAK;AAAA,EACtB,OAAO;AACL,YAAQ,MAAM,MAAM,GAAG,IAAI,EAAE,KAAK;AAClC,aAAS,MAAM,MAAM,OAAO,CAAC,EAAE,KAAK;AAAA,EACtC;AACA,MAAI,WAAW,GAAI,QAAO;AAC1B,SAAO,QAAQ,EAAE,QAAQ,MAAM,IAAI,EAAE,OAAO;AAC9C;AAMO,SAAS,eAAe,OAAkC;AAC/D,MAAI,MAAM,QAAQ,IAAI,MAAM,GAAI,QAAO;AACvC,QAAM,MAAkB,CAAC;AACzB,MAAI,YAAY;AAChB,MAAI,WAAW;AACf,WAAS,YAAY;AACrB,MAAI;AACJ,UAAQ,QAAQ,SAAS,KAAK,KAAK,OAAO,MAAM;AAC9C,UAAM,QAAQ,eAAe,MAAM,CAAC,CAAC;AACrC,QAAI,CAAC,MAAO;AACZ,QAAI,MAAM,QAAQ,UAAW,KAAI,KAAK,EAAE,MAAM,MAAM,MAAM,WAAW,MAAM,KAAK,EAAE,CAAC;AACnF,QAAI,KAAK,EAAE,MAAM,MAAM,CAAC;AACxB,gBAAY,MAAM,QAAQ,MAAM,CAAC,EAAE;AACnC,eAAW;AAAA,EACb;AACA,MAAI,CAAC,SAAU,QAAO;AACtB,MAAI,YAAY,MAAM,OAAQ,KAAI,KAAK,EAAE,MAAM,MAAM,MAAM,SAAS,EAAE,CAAC;AACvE,SAAO;AACT;","names":[]}
@@ -0,0 +1,21 @@
1
+ interface WikiLinkToken {
2
+ /** The raw target path, verbatim (relative or absolute; resolved in-mount only). */
3
+ target: string;
4
+ /** The explicit label, or undefined (the component derives one). */
5
+ label?: string;
6
+ }
7
+ type WikiPart = {
8
+ text: string;
9
+ } | {
10
+ wiki: WikiLinkToken;
11
+ };
12
+ /** Parse the `[[label|target]]` / `[[target]]` inner text (label first, then target
13
+ * — the §13.1 order), or `null` for an empty target (leave the literal `[[…]]`). */
14
+ declare function parseWikiInner(inner: string): WikiLinkToken | null;
15
+ /**
16
+ * Split a text string on its `[[…]]` runs into ordered text / wiki parts, or `null`
17
+ * when there is no usable wiki-link (so the caller keeps the text node untouched).
18
+ */
19
+ declare function splitWikiLinks(value: string): WikiPart[] | null;
20
+
21
+ export { type WikiLinkToken, type WikiPart, parseWikiInner, splitWikiLinks };
@@ -0,0 +1,21 @@
1
+ interface WikiLinkToken {
2
+ /** The raw target path, verbatim (relative or absolute; resolved in-mount only). */
3
+ target: string;
4
+ /** The explicit label, or undefined (the component derives one). */
5
+ label?: string;
6
+ }
7
+ type WikiPart = {
8
+ text: string;
9
+ } | {
10
+ wiki: WikiLinkToken;
11
+ };
12
+ /** Parse the `[[label|target]]` / `[[target]]` inner text (label first, then target
13
+ * — the §13.1 order), or `null` for an empty target (leave the literal `[[…]]`). */
14
+ declare function parseWikiInner(inner: string): WikiLinkToken | null;
15
+ /**
16
+ * Split a text string on its `[[…]]` runs into ordered text / wiki parts, or `null`
17
+ * when there is no usable wiki-link (so the caller keeps the text node untouched).
18
+ */
19
+ declare function splitWikiLinks(value: string): WikiPart[] | null;
20
+
21
+ export { type WikiLinkToken, type WikiPart, parseWikiInner, splitWikiLinks };
@@ -0,0 +1,38 @@
1
+ const WIKILINK = /\[\[([^[\]]+)\]\]/g;
2
+ function parseWikiInner(inner) {
3
+ const pipe = inner.indexOf("|");
4
+ let target;
5
+ let label;
6
+ if (pipe === -1) {
7
+ target = inner.trim();
8
+ } else {
9
+ label = inner.slice(0, pipe).trim();
10
+ target = inner.slice(pipe + 1).trim();
11
+ }
12
+ if (target === "") return null;
13
+ return label ? { target, label } : { target };
14
+ }
15
+ function splitWikiLinks(value) {
16
+ if (value.indexOf("[[") === -1) return null;
17
+ const out = [];
18
+ let lastIndex = 0;
19
+ let produced = false;
20
+ WIKILINK.lastIndex = 0;
21
+ let match;
22
+ while ((match = WIKILINK.exec(value)) !== null) {
23
+ const token = parseWikiInner(match[1]);
24
+ if (!token) continue;
25
+ if (match.index > lastIndex) out.push({ text: value.slice(lastIndex, match.index) });
26
+ out.push({ wiki: token });
27
+ lastIndex = match.index + match[0].length;
28
+ produced = true;
29
+ }
30
+ if (!produced) return null;
31
+ if (lastIndex < value.length) out.push({ text: value.slice(lastIndex) });
32
+ return out;
33
+ }
34
+ export {
35
+ parseWikiInner,
36
+ splitWikiLinks
37
+ };
38
+ //# sourceMappingURL=wikilink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/safeContent/wikilink.ts"],"sourcesContent":["// Wikilink parsing for the safe content renderer (TRUST_MODES_SPEC §5.1). A §5.1\n// residual: wikilinks resolve **only within the granted mount, never a fetch**. The\n// kernel's executable pipeline compiles `[[target]]`/`[[label|target]]` to a\n// `<WikiLink>` component (transpiler `remarkWikiLinks`, MARKDOWN_SYNTAX_SPEC §13); the\n// SAFE renderer parses raw source, so it splits `[[…]]` out of text itself with the\n// same byte-local rule and hands the raw target/label to an injected, **in-mount**\n// resolver. The renderer never fetches; resolution is the consumer's mount-scoped\n// callback (or, absent one, the link renders as inert text).\n\n// Inner content up to the closing `]]`, forbidding `[`/`]` so nested brackets can't\n// be swallowed. Global — a text run may hold several.\nconst WIKILINK = /\\[\\[([^[\\]]+)\\]\\]/g;\n\nexport interface WikiLinkToken {\n /** The raw target path, verbatim (relative or absolute; resolved in-mount only). */\n target: string;\n /** The explicit label, or undefined (the component derives one). */\n label?: string;\n}\n\nexport type WikiPart = { text: string } | { wiki: WikiLinkToken };\n\n/** Parse the `[[label|target]]` / `[[target]]` inner text (label first, then target\n * — the §13.1 order), or `null` for an empty target (leave the literal `[[…]]`). */\nexport function parseWikiInner(inner: string): WikiLinkToken | null {\n const pipe = inner.indexOf('|');\n let target: string;\n let label: string | undefined;\n if (pipe === -1) {\n target = inner.trim();\n } else {\n label = inner.slice(0, pipe).trim();\n target = inner.slice(pipe + 1).trim();\n }\n if (target === '') return null;\n return label ? { target, label } : { target };\n}\n\n/**\n * Split a text string on its `[[…]]` runs into ordered text / wiki parts, or `null`\n * when there is no usable wiki-link (so the caller keeps the text node untouched).\n */\nexport function splitWikiLinks(value: string): WikiPart[] | null {\n if (value.indexOf('[[') === -1) return null;\n const out: WikiPart[] = [];\n let lastIndex = 0;\n let produced = false;\n WIKILINK.lastIndex = 0;\n let match: RegExpExecArray | null;\n while ((match = WIKILINK.exec(value)) !== null) {\n const token = parseWikiInner(match[1]);\n if (!token) continue; // empty target → keep the literal `[[…]]`\n if (match.index > lastIndex) out.push({ text: value.slice(lastIndex, match.index) });\n out.push({ wiki: token });\n lastIndex = match.index + match[0].length;\n produced = true;\n }\n if (!produced) return null;\n if (lastIndex < value.length) out.push({ text: value.slice(lastIndex) });\n return out;\n}\n"],"mappings":"AAWA,MAAM,WAAW;AAaV,SAAS,eAAe,OAAqC;AAClE,QAAM,OAAO,MAAM,QAAQ,GAAG;AAC9B,MAAI;AACJ,MAAI;AACJ,MAAI,SAAS,IAAI;AACf,aAAS,MAAM,KAAK;AAAA,EACtB,OAAO;AACL,YAAQ,MAAM,MAAM,GAAG,IAAI,EAAE,KAAK;AAClC,aAAS,MAAM,MAAM,OAAO,CAAC,EAAE,KAAK;AAAA,EACtC;AACA,MAAI,WAAW,GAAI,QAAO;AAC1B,SAAO,QAAQ,EAAE,QAAQ,MAAM,IAAI,EAAE,OAAO;AAC9C;AAMO,SAAS,eAAe,OAAkC;AAC/D,MAAI,MAAM,QAAQ,IAAI,MAAM,GAAI,QAAO;AACvC,QAAM,MAAkB,CAAC;AACzB,MAAI,YAAY;AAChB,MAAI,WAAW;AACf,WAAS,YAAY;AACrB,MAAI;AACJ,UAAQ,QAAQ,SAAS,KAAK,KAAK,OAAO,MAAM;AAC9C,UAAM,QAAQ,eAAe,MAAM,CAAC,CAAC;AACrC,QAAI,CAAC,MAAO;AACZ,QAAI,MAAM,QAAQ,UAAW,KAAI,KAAK,EAAE,MAAM,MAAM,MAAM,WAAW,MAAM,KAAK,EAAE,CAAC;AACnF,QAAI,KAAK,EAAE,MAAM,MAAM,CAAC;AACxB,gBAAY,MAAM,QAAQ,MAAM,CAAC,EAAE;AACnC,eAAW;AAAA,EACb;AACA,MAAI,CAAC,SAAU,QAAO;AACtB,MAAI,YAAY,MAAM,OAAQ,KAAI,KAAK,EAAE,MAAM,MAAM,MAAM,SAAS,EAAE,CAAC;AACvE,SAAO;AACT;","names":[]}
package/dist/version.cjs CHANGED
@@ -21,7 +21,7 @@ __export(version_exports, {
21
21
  SDK_VERSION: () => SDK_VERSION
22
22
  });
23
23
  module.exports = __toCommonJS(version_exports);
24
- const SDK_VERSION = "0.28.0";
24
+ const SDK_VERSION = "0.30.0";
25
25
  // Annotate the CommonJS export names for ESM import in node:
26
26
  0 && (module.exports = {
27
27
  SDK_VERSION
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.28.0';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.30.0';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,cAAc;","names":[]}
@@ -1,4 +1,4 @@
1
1
  /** This SDK's package version, baked from package.json at build (SP2-6). */
2
- declare const SDK_VERSION = "0.28.0";
2
+ declare const SDK_VERSION = "0.30.0";
3
3
 
4
4
  export { SDK_VERSION };
package/dist/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /** This SDK's package version, baked from package.json at build (SP2-6). */
2
- declare const SDK_VERSION = "0.28.0";
2
+ declare const SDK_VERSION = "0.30.0";
3
3
 
4
4
  export { SDK_VERSION };
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "0.28.0";
1
+ const SDK_VERSION = "0.30.0";
2
2
  export {
3
3
  SDK_VERSION
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.28.0';\n"],"mappings":"AAIO,MAAM,cAAc;","names":[]}
1
+ {"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.30.0';\n"],"mappings":"AAIO,MAAM,cAAc;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immediately-run/sdk",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "description": "Runtime SDK for code executing inside an immediately.run sandbox.",
5
5
  "license": "MIT",
6
6
  "repository": "github:immediately-run/immediately-run-sdk",
@@ -32,15 +32,21 @@
32
32
  "check:circular": "node scripts/check-circular.mjs",
33
33
  "api:check": "node scripts/check-api-stability.mjs",
34
34
  "api:update": "node scripts/check-api-stability.mjs --update",
35
- "verify": "npm run check:circular && npm test && npm run build && npm run api:check",
35
+ "verify": "npm run check:circular && npm test && npm run test:safe-content && npm run build && npm run api:check",
36
36
  "docs": "typedoc --json docs/api.json && node scripts/gen-llms.mjs",
37
- "prepublishOnly": "npm run check:circular && npm run build && npm run api:check"
37
+ "prepublishOnly": "npm run check:circular && npm run build && npm run api:check",
38
+ "test:safe-content": "node scripts/build-safecontent-e2e.mjs && node --test test/safeContent.e2e.mjs"
38
39
  },
39
40
  "peerDependencies": {
40
41
  "react": "^19.0.0",
41
42
  "react-dom": "^19.0.0"
42
43
  },
43
44
  "dependencies": {
45
+ "mdast-util-from-markdown": "^2.0.3",
46
+ "mdast-util-gfm": "^3.1.0",
47
+ "mdast-util-mdx-jsx": "^3.2.0",
48
+ "micromark-extension-gfm": "^3.0.0",
49
+ "micromark-extension-mdx-jsx": "^3.0.2",
44
50
  "react-error-boundary": "^6.0.0"
45
51
  },
46
52
  "devDependencies": {